|
@@ -474,19 +474,19 @@ PWM_MAIN.checkForCapsLock = function(e) {
|
|
|
|
|
|
if(dojo.isIE){
|
|
if(dojo.isIE){
|
|
if (capsLockKeyDetected) {
|
|
if (capsLockKeyDetected) {
|
|
- capsLockWarningElement.style.display = 'block';
|
|
|
|
|
|
+ PWM_MAIN.removeCssClass('capslockwarning','display-none');
|
|
PWM_GLOBAL['lastCapsLockErrorTime'] = (new Date().getTime());
|
|
PWM_GLOBAL['lastCapsLockErrorTime'] = (new Date().getTime());
|
|
setTimeout(function(){
|
|
setTimeout(function(){
|
|
if ((new Date().getTime() - PWM_GLOBAL['lastCapsLockErrorTime'] > displayDuration)) {
|
|
if ((new Date().getTime() - PWM_GLOBAL['lastCapsLockErrorTime'] > displayDuration)) {
|
|
- capsLockWarningElement.style.display = 'none';
|
|
|
|
|
|
+ PWM_MAIN.addCssClass('capslockwarning','display-none');
|
|
}
|
|
}
|
|
},displayDuration + 500);
|
|
},displayDuration + 500);
|
|
} else {
|
|
} else {
|
|
- capsLockWarningElement.style.display = 'none';
|
|
|
|
|
|
+ PWM_MAIN.addCssClass('capslockwarning','display-none');
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
if (capsLockKeyDetected) {
|
|
if (capsLockKeyDetected) {
|
|
- capsLockWarningElement.style.display = null;
|
|
|
|
|
|
+ PWM_MAIN.removeCssClass('capslockwarning','display-none');
|
|
fx.fadeIn(fadeInArgs).play();
|
|
fx.fadeIn(fadeInArgs).play();
|
|
PWM_GLOBAL['lastCapsLockErrorTime'] = (new Date().getTime());
|
|
PWM_GLOBAL['lastCapsLockErrorTime'] = (new Date().getTime());
|
|
setTimeout(function(){
|
|
setTimeout(function(){
|
|
@@ -494,7 +494,7 @@ PWM_MAIN.checkForCapsLock = function(e) {
|
|
dojo.fadeOut(fadeOutArgs).play();
|
|
dojo.fadeOut(fadeOutArgs).play();
|
|
setTimeout(function(){
|
|
setTimeout(function(){
|
|
if ((new Date().getTime() - PWM_GLOBAL['lastCapsLockErrorTime'] > displayDuration)) {
|
|
if ((new Date().getTime() - PWM_GLOBAL['lastCapsLockErrorTime'] > displayDuration)) {
|
|
- capsLockWarningElement.style.display = 'none';
|
|
|
|
|
|
+ PWM_MAIN.addCssClass('capslockwarning','display-none');
|
|
}
|
|
}
|
|
},5 * 1000);
|
|
},5 * 1000);
|
|
}
|
|
}
|
|
@@ -1392,10 +1392,10 @@ PWM_MAIN.updateLoginContexts = function() {
|
|
var selectedProfile = ldapProfileElement.options[ldapProfileElement.selectedIndex].value;
|
|
var selectedProfile = ldapProfileElement.options[ldapProfileElement.selectedIndex].value;
|
|
var contextList = PWM_GLOBAL['ldapProfiles'][selectedProfile];
|
|
var contextList = PWM_GLOBAL['ldapProfiles'][selectedProfile];
|
|
if (PWM_MAIN.JSLibrary.isEmpty(contextList)) {
|
|
if (PWM_MAIN.JSLibrary.isEmpty(contextList)) {
|
|
- PWM_MAIN.getObject('contextSelectorWrapper').style.display = 'none';
|
|
|
|
|
|
+ PWM_MAIN.addCssClass( 'contentSelectorWrapper', 'display-none' );
|
|
} else {
|
|
} else {
|
|
contextElement.innerHTML = '';
|
|
contextElement.innerHTML = '';
|
|
- PWM_MAIN.getObject('contextSelectorWrapper').style.display = 'inherit';
|
|
|
|
|
|
+ PWM_MAIN.removeCssClass( 'contentSelectorWrapper', 'display-none' );
|
|
for (var iter in contextList) {
|
|
for (var iter in contextList) {
|
|
(function (key) {
|
|
(function (key) {
|
|
var display = contextList[key];
|
|
var display = contextList[key];
|