summaryrefslogtreecommitdiff
path: root/js/codeq/navigation.js
diff options
context:
space:
mode:
authorMarko Pušnik <marko.pusnik@guru.si>2015-09-29 13:12:02 +0200
committerMarko Pušnik <marko.pusnik@guru.si>2015-09-29 13:12:02 +0200
commit68847b98e7b7804656e2abe09190a1b3553dbfc7 (patch)
tree48d6288b6c60b6cec284301161e823517c31fd89 /js/codeq/navigation.js
parent10de7241f22a10d65f53c891a8b07fe8650b4878 (diff)
logout, sign in + change password modals, setting drop-down, profile screen
Diffstat (limited to 'js/codeq/navigation.js')
-rw-r--r--js/codeq/navigation.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/js/codeq/navigation.js b/js/codeq/navigation.js
index 1a7799f..80fd321 100644
--- a/js/codeq/navigation.js
+++ b/js/codeq/navigation.js
@@ -97,4 +97,13 @@
codeq.globalStateMachine.transition('prolog');
e.preventDefault();
});
+ $('#navigation-logout').on('click', function(e){
+ codeq.globalStateMachine.transition('login');
+ e.preventDefault();//prevent this since we'll trigger a page reload otherwise
+ });
+ $('#navigation-profile').on('click', function(e){
+ codeq.globalStateMachine.transition('profile');
+ e.preventDefault();//prevent this since we'll trigger a page reload otherwise
+ });
+
})(); \ No newline at end of file