Numpad release#2279
Conversation
Conflicts: kalite/distributed/templates/distributed/exercise.html kalite/static/js/khan-exercises/khan-exercise.js kalite/static/js/khan-exercises/utils/answer-types.js
Conflicts: kalite/distributed/static/css/distributed/khan-lite.css
Allows toggling of keypad, with auto-toggled off if modernizr.touch is false. Conflicts: kalite/distributed/static/css/distributed/khan-lite.css
Changes TODOs to TODO-BLOCKERs.
TODO-BLOCKER (rtibbles): Undo these commits before 0.13.
|
Well... tests pass! |
|
Will take a look in a bit. |
|
Firefox 31, Ubuntu 14.04 |
|
Fixed in the latest chromium browser. |
|
Hopefully fixed in Firefox. We should really test in Android browsers as the main target. |
|
Can confirm that it's working properly on desktop firefox and the android browser for the ubislate. Merging! |
|
awesome! |
|
Hi there - how can I test? Is there a new version available? |
|
Hi @mikewray -- I'll handle a release tomorrow, and will send you the link once I build the new version. |
|
Tx - can I test on Rpi as well? If so please advise. Is it along these lines: To check if your RPi is in the latest version -> "git remote update" then type in "git status" |
|
Hi - just checked on 0.12.3 (windows) and numpad seems to be working well. Like how it gives you the numpad on tablet and you need to ask for it on desktop. The only thing I might change is putting the 'check answer' by or just below the question. As it is you have to scroll down to check the answer then go back up to the top to put in the answer for the next. |
|
Hi @mikewray, You can definitely try with the RPi right now. Here are the exact steps:
That's it! You should be in v0.12.3 now. |
|
Thanks - it seemed to work and numpad working off Rpi but got a strange message when running 'git checkout master' - something about files getting over written then it 'Aborting' at the end. I put output on gist, could you confirm errors are ok -> https://gist.github.com/mikewray/184c647ea569d5836cb4 |
|
It didn't go exactly as planned, but since it's a fast-forward then you should be good. |
|
Is there a clean way to do it, this is going to be an image for a few deployments so would rather get it right? I'm upgrading from 0.12.0. Tx! |
|
Just a note that you'll need to make sure to stop the server and delete the database before cloning the image, as otherwise they will contain the same Device ID, which will be very bad for syncing. |
|
Yes am aware, tx @jamalex - only caveat with your solution is that you cannot name the device which would be nice to have, it seems randomly assigned unless there is a command to do this. My master plan was to do a fresh install of KA Lite on the clone and in so doing create the device name and start with a new database. If this is a better plan, what is the command I should use? When I upgraded to 0.12.3 there was some weirdness (see above) - is there any way I can do a definitely clean install or is it certain the errors I got ok. I can go back to earlier image if required. |
|
You can rename the device after it's been initialized, so that might be the best approach: let it autogenerate everything (starting clean with no database), and then rename it after logging in. If this image will be kept private, there is a setting for having it auto-create a standard admin account so you won't need to do that from the command line (put this in local_settings.py): Eventually, we want to move all this config into the browser, so after a clean start, it will allow you to name the device and create an admin account the first time you load the KA Lite web interface. |
|
Thanks - makes great sense. How do you rename the device after its been initialized, I can't see how...or is there a command? |
|
Ah. Yes. Looks like there's no good way in the web interface. You can use the following command (all one line): |


As requested by @mikewray - PR for the numpad code to be included in 0.12.3.
This code has already been reviewed, submitting PR to make sure it doesn't break tests. Manually tested, seems to be working - had to add additional styling to make the keyboard render properly without bootstrap.