mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-04 15:07:02 +03:00
CommonJS (research/3)
This commit is contained in:
parent
586abbb802
commit
06bb124379
99 changed files with 51037 additions and 42961 deletions
|
|
@ -15,7 +15,7 @@
|
|||
Plugins = require('../Common/Plugins.js'),
|
||||
LinkBuilder = require('../Common/LinkBuilder.js'),
|
||||
|
||||
RL = require('../RL.js')
|
||||
AppSettings = require('./AppSettings.js')
|
||||
;
|
||||
|
||||
/**
|
||||
|
|
@ -63,7 +63,10 @@
|
|||
|
||||
if (Consts.Values.TokenErrorLimit < Globals.iTokenErrorCount)
|
||||
{
|
||||
RL().loginAndLogoutReload(true);
|
||||
if (Globals.__RL)
|
||||
{
|
||||
Globals.__RL.loginAndLogoutReload(true);
|
||||
}
|
||||
}
|
||||
|
||||
if (oData.Logout || Consts.Values.AjaxErrorLimit < Globals.iAjaxErrorCount)
|
||||
|
|
@ -73,7 +76,10 @@
|
|||
window.__rlah_clear();
|
||||
}
|
||||
|
||||
RL().loginAndLogoutReload(true);
|
||||
if (Globals.__RL)
|
||||
{
|
||||
Globals.__RL.loginAndLogoutReload(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (Enums.StorageResultType.Success === sType && oData && oData.Result)
|
||||
|
|
@ -163,7 +169,7 @@
|
|||
|
||||
if (bPost)
|
||||
{
|
||||
oParameters['XToken'] = RL.settingsGet('Token'); // TODO cjs
|
||||
oParameters['XToken'] = AppSettings.settingsGet('Token');
|
||||
}
|
||||
|
||||
oDefAjax = $.ajax({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue