From db188516cbd72d6bdc067370af70d1e7cc0d1f52 Mon Sep 17 00:00:00 2001 From: Robert Zorko Date: Mon, 19 Oct 2015 11:57:20 +0200 Subject: hiding the change password buttons if the user logs in via saml --- js/codeq/aaiLogin.js | 2 +- js/codeq/login.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'js/codeq') 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() -- cgit v1.2.1