|
26 |
* /usr/share/common-licenses/AGPL-3; if not, see |
26 |
* /usr/share/common-licenses/AGPL-3; if not, see |
27 |
* <http://www.gnu.org/licenses/>. |
27 |
* <http://www.gnu.org/licenses/>. |
28 |
*/ |
28 |
*/ |
29 |
/*global define console window setTimeout require*/ |
29 |
/*global define, console, window, setTimeout, require*/ |
30 |
|
30 |
|
31 |
define([ |
31 |
define([ |
32 |
"dojo/_base/declare", |
32 |
"dojo/_base/declare", |
|
222 |
})); |
222 |
})); |
223 |
return; |
223 |
return; |
224 |
} |
224 |
} |
225 |
if (name == 'umcLoginForm') { |
225 |
if (name === 'umcLoginForm') { |
226 |
this._submitFakeForm(); |
226 |
this._submitFakeForm(); |
227 |
} |
227 |
} |
228 |
// FIXME: if custom prompts and(!) new password is required we should just switch the view |
228 |
// FIXME: if custom prompts and(!) new password is required we should just switch the view |
|
252 |
}); |
252 |
}); |
253 |
|
253 |
|
254 |
// validate new password form |
254 |
// validate new password form |
255 |
if (name == 'umcNewPasswordForm' && newPasswordInput.value && newPasswordInput.value !== newPasswordRetypeInput.value) { |
255 |
if (name === 'umcNewPasswordForm' && newPasswordInput.value && newPasswordInput.value !== newPasswordRetypeInput.value) { |
256 |
this.set('LoginMessage', '<h1>' + _('Changing password failed') + '</h1><p>' + _('The passwords do not match, please retype again.') + '</p>'); |
256 |
this.set('LoginMessage', '<h1>' + _('Changing password failed') + '</h1><p>' + _('The passwords do not match, please retype again.') + '</p>'); |
257 |
return; |
257 |
return; |
258 |
} |
258 |
} |
|
466 |
_show: function() { |
466 |
_show: function() { |
467 |
var deferred; |
467 |
var deferred; |
468 |
query('#umcLoginWrapper').style('display', 'block'); |
468 |
query('#umcLoginWrapper').style('display', 'block'); |
|
|
469 |
query('html').style('overflow', 'hidden'); |
469 |
query('#umcLoginDialog').style('opacity', '1'); // baseFx.fadeOut sets opacity to 0 |
470 |
query('#umcLoginDialog').style('opacity', '1'); // baseFx.fadeOut sets opacity to 0 |
470 |
this._setFocus(); |
471 |
this._setFocus(); |
471 |
if (has('ie') < 10) { |
472 |
if (has('ie') < 10) { |
|
518 |
// hide the dialog |
519 |
// hide the dialog |
519 |
var hide = lang.hitch(this, function() { |
520 |
var hide = lang.hitch(this, function() { |
520 |
query('#umcLoginWrapper').style('display', 'none'); |
521 |
query('#umcLoginWrapper').style('display', 'none'); |
|
|
522 |
query('html').style('overflow', ''); |
521 |
Dialog._DialogLevelManager.hide(this); |
523 |
Dialog._DialogLevelManager.hide(this); |
522 |
this.standby(false); |
524 |
this.standby(false); |
523 |
try { |
525 |
try { |