diff options
author | Aleš Smodiš <aless@guru.si> | 2015-12-15 11:26:23 +0100 |
---|---|---|
committer | Aleš Smodiš <aless@guru.si> | 2015-12-15 11:26:23 +0100 |
commit | 13c8be3d82350082093df8cd65771f09fcb83c54 (patch) | |
tree | 3df49dfdff29a1d57cb30857c323187d50852a5e /js/codeq/login.js | |
parent | 8b223c8ad6e096105703776a59937da62d8cb3d5 (diff) |
Fixed the bug about the loss of problem solving screen state when entering a navigation-bar state and getting back.
Now every state carries with itself the publicly exposed jqScreen object and isModal boolean information, which is used by the globalStateMachine in the actualTransition method.
Diffstat (limited to 'js/codeq/login.js')
-rw-r--r-- | js/codeq/login.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/js/codeq/login.js b/js/codeq/login.js index 162e336..f7ddeb3 100644 --- a/js/codeq/login.js +++ b/js/codeq/login.js @@ -78,6 +78,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ formInputs = $('#username, #password'); codeq.globalStateMachine.register('login',{ + 'jqScreen': jqScreen, + 'enter': function(){ jqNavigationHomeBtn.off('click');//remove the click listener of this element here jqNavBarRight.css('display','none');//hide settings etc. |