summaryrefslogtreecommitdiff
path: root/js/codeq/login.js
diff options
context:
space:
mode:
authorRobert Zorko <robertz@gurucue.com>2015-10-14 15:29:12 +0200
committerRobert Zorko <robertz@gurucue.com>2015-10-14 15:29:12 +0200
commit751ee468a0f996da42bccc65a9dfee5a7b243352 (patch)
tree2da3d1617e6a9b7f2d2b2e0ecc53f79ad4a5b266 /js/codeq/login.js
parent2fe1ceebd6287ed4835798c82498834102cb7e18 (diff)
moved the cahnged pass popup to its own screen and enabled the change pass btn in the profile screen
Diffstat (limited to 'js/codeq/login.js')
-rw-r--r--js/codeq/login.js11
1 files changed, 7 insertions, 4 deletions
diff --git a/js/codeq/login.js b/js/codeq/login.js
index 53a422c..29dd87b 100644
--- a/js/codeq/login.js
+++ b/js/codeq/login.js
@@ -3,6 +3,9 @@
*/
(function(){
+ var jqNavBarRight = $('.nav.navbar-nav.navbar-right'),
+ jqNavigationHomeBtn = $('#navigation-home');
+
var loginFun = function(){
$('#disabled').css('display', '');
$('#disabled').css('cursor', 'wait');
@@ -48,8 +51,8 @@
codeq.globalStateMachine.register('login',{
'enter': function(){
- $('#navigation-home').off('click');//remove the click listener of this element here
- $('.nav.navbar-nav.navbar-right').css('display','none');//hide settings etc.
+ jqNavigationHomeBtn.off('click');//remove the click listener of this element here
+ jqNavBarRight.css('display','none');//hide settings etc.
$('#signed-in-title').html('');
//setup the signup button
@@ -76,11 +79,11 @@
$('#signed-in-title').html($('#username').val());
$("#password").val('');
//re-enable the click listener
- $('#navigation-home').on('click', function(e){
+ jqNavigationHomeBtn.on('click', function(e){
codeq.globalStateMachine.transition('language');
e.preventDefault();
});
- $('.nav.navbar-nav.navbar-right').css('display','');
+ jqNavBarRight.css('display','');
//remove the listener from the signup button
$('#signup_button').off('click');