summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorRobert Zorko <robertz@gurucue.com>2015-10-19 11:57:20 +0200
committerRobert Zorko <robertz@gurucue.com>2015-10-19 11:57:20 +0200
commitdb188516cbd72d6bdc067370af70d1e7cc0d1f52 (patch)
treed241f402476b2ab564a881cbcb0aca20c1a2c23d /js
parent932aac1a1930fa43ce2d0f3ec7bcff01e3c84d99 (diff)
hiding the change password buttons if the user logs in via saml
Diffstat (limited to 'js')
-rw-r--r--js/codeq/aaiLogin.js2
-rw-r--r--js/codeq/login.js1
2 files changed, 2 insertions, 1 deletions
diff --git a/js/codeq/aaiLogin.js b/js/codeq/aaiLogin.js
index 2e49138..7e48486 100644
--- a/js/codeq/aaiLogin.js
+++ b/js/codeq/aaiLogin.js
@@ -14,7 +14,7 @@
codeq.globalStateMachine.register('aailogin',{
'enter': function(){
jqDisabledOverlay.css('display', '');
-
+ $('.saml-login-hide').css('display','none');//hide the change password buttons, in the case we go back to the normal login page (cancel or error) they will be reset to being visible when we enter the normal login state
jqNavigationHomeBtn.off('click');//remove the click listener of this element here
jqNavBarRight.css('display','none');//hide settings etc.
diff --git a/js/codeq/login.js b/js/codeq/login.js
index 9c71547..61f248d 100644
--- a/js/codeq/login.js
+++ b/js/codeq/login.js
@@ -41,6 +41,7 @@
};
var loginFun = function(){
+ $('.saml-login-hide').css('display','');//if we login the normal way we want to show the change password buttons. if we enter the saml login they will be hidden
$('#disabled').css('display', '');
$('#disabled').css('cursor', 'wait');
codeq.comms.connect()