summaryrefslogtreecommitdiff
path: root/js/codeq/navigation.js
diff options
context:
space:
mode:
authorRobert Zorko <robertz@gurucue.com>2015-10-14 14:04:11 +0200
committerRobert Zorko <robertz@gurucue.com>2015-10-14 14:04:11 +0200
commit2fe1ceebd6287ed4835798c82498834102cb7e18 (patch)
tree4ab2e83c7f5d5b08389bc6626cdc205420b09398 /js/codeq/navigation.js
parent7a98e5ed234e5a7a0dc2a8e04b1ebccf7ea2fb29 (diff)
moved the signup to its own screen (and file)
Diffstat (limited to 'js/codeq/navigation.js')
-rw-r--r--js/codeq/navigation.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/js/codeq/navigation.js b/js/codeq/navigation.js
index dab907a..58f0cf2 100644
--- a/js/codeq/navigation.js
+++ b/js/codeq/navigation.js
@@ -71,7 +71,7 @@
},
'actualTransition': function (name) {
//check if we are logged in - if we aren't we will always transition to the login state
- if(!codeq.comms.getSid()){
+ if(!codeq.comms.getSid() && name !== "signup"){//we can of course enter the signup state even if not logged in
name = 'login';//this will cause the following code to transition to the login state instead of the original one given
}
@@ -85,7 +85,6 @@
};
codeq.globalStateMachine = makeGlobalStateMachine({});
-
//setup all the buttons in the banner
$('#navigation-home').on('click', function(e){
codeq.globalStateMachine.transition('language');