mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Added knockoutjs components (step 1)
This commit is contained in:
parent
e6438233cf
commit
c2b7632c13
35 changed files with 779 additions and 187 deletions
|
|
@ -1982,6 +1982,9 @@
|
|||
Utils.reloadLanguage = function (sLanguage, fDone, fFail)
|
||||
{
|
||||
var iStart = Utils.microtime();
|
||||
|
||||
Globals.$html.addClass('rl-changing-language');
|
||||
|
||||
$.ajax({
|
||||
'url': require('Common/Links').langLink(sLanguage),
|
||||
'dataType': 'script',
|
||||
|
|
@ -1992,6 +1995,7 @@
|
|||
_.delay(function () {
|
||||
Utils.i18nReload();
|
||||
(fDone || Utils.emptyFunction)();
|
||||
Globals.$html.removeClass('rl-changing-language');
|
||||
}, 500 < Utils.microtime() - iStart ? 1 : 500);
|
||||
})
|
||||
;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue