|
74 |
|
74 |
|
75 |
open: false, |
75 |
open: false, |
76 |
|
76 |
|
|
|
77 |
noCookieMsg: { |
78 |
title: _('Cookies disabled'), |
79 |
msg: _('Please enable cookies in your browser to use Univention Management Console.') |
80 |
}, |
81 |
|
77 |
postMixInProperties: function() { |
82 |
postMixInProperties: function() { |
78 |
this.inherited(arguments); |
83 |
this.inherited(arguments); |
79 |
this._currentResult = {}; |
84 |
this._currentResult = {}; |
|
202 |
// if username is specified, we need to auto fill the username |
207 |
// if username is specified, we need to auto fill the username |
203 |
if (tools.status('username')) { |
208 |
if (tools.status('username')) { |
204 |
attr.set('umcLoginUsername', 'value', tools.status('username')); |
209 |
attr.set('umcLoginUsername', 'value', tools.status('username')); |
205 |
}; |
210 |
} |
206 |
}, |
211 |
}, |
207 |
|
212 |
|
208 |
_watchFormSubmits: function() { |
213 |
_watchFormSubmits: function() { |
|
210 |
var form = dom.byId(name); |
215 |
var form = dom.byId(name); |
211 |
on(form, 'submit', lang.hitch(this, function(evt) { |
216 |
on(form, 'submit', lang.hitch(this, function(evt) { |
212 |
evt.preventDefault(); |
217 |
evt.preventDefault(); |
|
|
218 |
if (!navigator.cookieEnabled) { |
219 |
require(['umc/dialog'], lang.hitch(this, function(umcDialog) { |
220 |
umcDialog.alert(this.noCookieMsg.msg, this.noCookieMsg.title); |
221 |
})); |
222 |
return; |
223 |
} |
213 |
if (name == 'umcLoginForm') { |
224 |
if (name == 'umcLoginForm') { |
214 |
this._submitFakeForm(); |
225 |
this._submitFakeForm(); |
215 |
} |
226 |
} |
|
410 |
// Chrome has no long term support version. Chromium 37 is supported through |
421 |
// Chrome has no long term support version. Chromium 37 is supported through |
411 |
// Ubuntu 12.04 LTS (2016-01-27). |
422 |
// Ubuntu 12.04 LTS (2016-01-27). |
412 |
// Apple has no long term support for safari. The latest version is 9 (2016-01-27) |
423 |
// Apple has no long term support for safari. The latest version is 9 (2016-01-27) |
413 |
title = _('Your Browser is outdated') + ((title == '') ? title : '<br>' + title); |
424 |
title = _('Your browser is outdated') + ((title === '') ? title : '<br>' + title); |
414 |
msg = _('Your Browser is outdated and should be updated. You may continue to use Univention Management Console but you may experience performance issues and other problems.') + ((msg == '') ? msg : '<br>' + msg); |
425 |
msg = _('Your browser is outdated and should be updated. You may continue to use Univention Management Console but you may experience performance issues and other problems.') + ((msg === '') ? msg : '<br>' + msg); |
415 |
} |
426 |
} |
416 |
|
427 |
|
|
|
428 |
if (!navigator.cookieEnabled) { |
429 |
title = this.noCookieMsg.title; |
430 |
msg = this.noCookieMsg.msg; |
431 |
} |
432 |
|
417 |
if (tools.status('setupGui')) { |
433 |
if (tools.status('setupGui')) { |
418 |
// user has already logged in before, show message for relogin |
434 |
// user has already logged in before, show message for relogin |
419 |
title = _('Session timeout'); |
435 |
title = _('Session timeout'); |