From 9f5bcf0217be9400b2ee012577c4d5a44a44c3cc Mon Sep 17 00:00:00 2001 From: Robert Zorko Date: Tue, 13 Oct 2015 17:03:33 +0200 Subject: disabled using the browser navigation button to jump back to a screen after logout and fixed a small display error where the banner would say 'signed in' twice --- js/codeq/navigation.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'js/codeq/navigation.js') diff --git a/js/codeq/navigation.js b/js/codeq/navigation.js index af1d250..57b398d 100644 --- a/js/codeq/navigation.js +++ b/js/codeq/navigation.js @@ -70,6 +70,12 @@ def[name] = state; }, '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()){ + name = 'login';//this will cause the following code to transition to the login state instead of the original one given + } + + var newState = def[name];//if the newState is not the same as the old or if it doesn't exist at all is already checked at this point if (currState) currState.exit(); currState = newState; -- cgit v1.2.1