mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
CommonJS (research/4)
This commit is contained in:
parent
06bb124379
commit
8d73c7b1b2
127 changed files with 1893 additions and 1085 deletions
|
|
@ -50,6 +50,9 @@
|
||||||
"jquery" : true,
|
"jquery" : true,
|
||||||
|
|
||||||
"globals": {
|
"globals": {
|
||||||
|
"module" : true,
|
||||||
|
"require" : true,
|
||||||
|
"ko" : true,
|
||||||
"ko" : true,
|
"ko" : true,
|
||||||
"ssm" : true,
|
"ssm" : true,
|
||||||
"moment" : true,
|
"moment" : true,
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,10 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
ko = require('../External/ko.js'),
|
ko = require('../External/ko.js')
|
||||||
AppSettings = require('../Storages/AppSettings.js'),
|
|
||||||
Data = require('../Storages/AdminDataStorage.js'),
|
|
||||||
RL = require('../Boots/AdminApp.js')
|
|
||||||
;
|
;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -16,6 +12,11 @@
|
||||||
*/
|
*/
|
||||||
function AdminSettingsAbout()
|
function AdminSettingsAbout()
|
||||||
{
|
{
|
||||||
|
var
|
||||||
|
AppSettings = require('../Storages/AppSettings.js'),
|
||||||
|
Data = require('../Storages/AdminDataStorage.js')
|
||||||
|
;
|
||||||
|
|
||||||
this.version = ko.observable(AppSettings.settingsGet('Version'));
|
this.version = ko.observable(AppSettings.settingsGet('Version'));
|
||||||
this.access = ko.observable(!!AppSettings.settingsGet('CoreAccess'));
|
this.access = ko.observable(!!AppSettings.settingsGet('CoreAccess'));
|
||||||
this.errorDesc = ko.observable('');
|
this.errorDesc = ko.observable('');
|
||||||
|
|
@ -70,7 +71,7 @@
|
||||||
{
|
{
|
||||||
if (this.access())
|
if (this.access())
|
||||||
{
|
{
|
||||||
RL.reloadCoreData();
|
require('../Boots/AdminApp.js').reloadCoreData();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -78,7 +79,7 @@
|
||||||
{
|
{
|
||||||
if (!this.coreUpdating())
|
if (!this.coreUpdating())
|
||||||
{
|
{
|
||||||
RL.updateCoreData();
|
require('../Boots/AdminApp.js').updateCoreData();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,18 +1,13 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
_ = require('../External/underscore.js'),
|
_ = require('../External/underscore.js'),
|
||||||
ko = require('../External/ko.js'),
|
ko = require('../External/ko.js'),
|
||||||
|
|
||||||
Enums = require('../Common/Enums.js'),
|
Utils = require('../Common/Utils.js')
|
||||||
Utils = require('../Common/Utils.js'),
|
|
||||||
|
|
||||||
AppSettings = require('..Storages/AppSettings.js'),
|
|
||||||
Remote = require('../Storages/AdminAjaxRemoteStorage.js')
|
|
||||||
;
|
;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -20,6 +15,11 @@
|
||||||
*/
|
*/
|
||||||
function AdminSettingsBranding()
|
function AdminSettingsBranding()
|
||||||
{
|
{
|
||||||
|
var
|
||||||
|
Enums = require('../Common/Enums.js'),
|
||||||
|
AppSettings = require('..Storages/AppSettings.js')
|
||||||
|
;
|
||||||
|
|
||||||
this.title = ko.observable(AppSettings.settingsGet('Title'));
|
this.title = ko.observable(AppSettings.settingsGet('Title'));
|
||||||
this.title.trigger = ko.observable(Enums.SaveSettingsStep.Idle);
|
this.title.trigger = ko.observable(Enums.SaveSettingsStep.Idle);
|
||||||
|
|
||||||
|
|
@ -38,7 +38,11 @@
|
||||||
|
|
||||||
AdminSettingsBranding.prototype.onBuild = function ()
|
AdminSettingsBranding.prototype.onBuild = function ()
|
||||||
{
|
{
|
||||||
var self = this;
|
var
|
||||||
|
self = this,
|
||||||
|
Remote = require('../Storages/AdminAjaxRemoteStorage.js')
|
||||||
|
;
|
||||||
|
|
||||||
_.delay(function () {
|
_.delay(function () {
|
||||||
|
|
||||||
var
|
var
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
_ = require('../External/underscore.js'),
|
_ = require('../External/underscore.js'),
|
||||||
ko = require('../External/ko.js'),
|
ko = require('../External/ko.js'),
|
||||||
|
|
@ -11,8 +10,7 @@
|
||||||
Enums = require('../Common/Enums.js'),
|
Enums = require('../Common/Enums.js'),
|
||||||
Utils = require('../Common/Utils.js'),
|
Utils = require('../Common/Utils.js'),
|
||||||
|
|
||||||
AppSettings = require('../Storages/AppSettings.js'),
|
AppSettings = require('../Storages/AppSettings.js')
|
||||||
Remote = require('../Storages/AdminAjaxRemoteStorage.js')
|
|
||||||
;
|
;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -20,6 +18,10 @@
|
||||||
*/
|
*/
|
||||||
function AdminSettingsContacts()
|
function AdminSettingsContacts()
|
||||||
{
|
{
|
||||||
|
var
|
||||||
|
Remote = require('../Storages/AdminAjaxRemoteStorage.js')
|
||||||
|
;
|
||||||
|
|
||||||
this.defautOptionsAfterRender = Utils.defautOptionsAfterRender;
|
this.defautOptionsAfterRender = Utils.defautOptionsAfterRender;
|
||||||
this.enableContacts = ko.observable(!!AppSettings.settingsGet('ContactsEnable'));
|
this.enableContacts = ko.observable(!!AppSettings.settingsGet('ContactsEnable'));
|
||||||
this.contactsSharing = ko.observable(!!AppSettings.settingsGet('ContactsSharing'));
|
this.contactsSharing = ko.observable(!!AppSettings.settingsGet('ContactsSharing'));
|
||||||
|
|
@ -174,7 +176,11 @@
|
||||||
|
|
||||||
AdminSettingsContacts.prototype.onBuild = function ()
|
AdminSettingsContacts.prototype.onBuild = function ()
|
||||||
{
|
{
|
||||||
var self = this;
|
var
|
||||||
|
self = this,
|
||||||
|
Remote = require('../Storages/AdminAjaxRemoteStorage.js')
|
||||||
|
;
|
||||||
|
|
||||||
_.delay(function () {
|
_.delay(function () {
|
||||||
|
|
||||||
var
|
var
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
window = require('../External/window.js'),
|
window = require('../External/window.js'),
|
||||||
_ = require('../External/underscore.js'),
|
_ = require('../External/underscore.js'),
|
||||||
|
|
@ -11,7 +10,7 @@
|
||||||
|
|
||||||
Enums = require('../Common/Enums.js'),
|
Enums = require('../Common/Enums.js'),
|
||||||
|
|
||||||
RL = require('../Boots/AdminApp.js'),
|
PopupsDomainViewModel = require('../ViewModels/Popups/PopupsDomainViewModel.js'),
|
||||||
|
|
||||||
Data = require('../Storages/AdminDataStorage.js'),
|
Data = require('../Storages/AdminDataStorage.js'),
|
||||||
Remote = require('../Storages/AdminAjaxRemoteStorage.js')
|
Remote = require('../Storages/AdminAjaxRemoteStorage.js')
|
||||||
|
|
@ -58,7 +57,7 @@
|
||||||
|
|
||||||
AdminSettingsDomains.prototype.createDomain = function ()
|
AdminSettingsDomains.prototype.createDomain = function ()
|
||||||
{
|
{
|
||||||
kn.showScreenPopup(PopupsDomainViewModel);
|
require('../Knoin/Knoin.js').showScreenPopup(PopupsDomainViewModel);
|
||||||
};
|
};
|
||||||
|
|
||||||
AdminSettingsDomains.prototype.deleteDomain = function (oDomain)
|
AdminSettingsDomains.prototype.deleteDomain = function (oDomain)
|
||||||
|
|
@ -86,20 +85,20 @@
|
||||||
})
|
})
|
||||||
;
|
;
|
||||||
|
|
||||||
RL.reloadDomainList();
|
require('../Boots/AdminApp.js').reloadDomainList();
|
||||||
};
|
};
|
||||||
|
|
||||||
AdminSettingsDomains.prototype.onDomainLoadRequest = function (sResult, oData)
|
AdminSettingsDomains.prototype.onDomainLoadRequest = function (sResult, oData)
|
||||||
{
|
{
|
||||||
if (Enums.StorageResultType.Success === sResult && oData && oData.Result)
|
if (Enums.StorageResultType.Success === sResult && oData && oData.Result)
|
||||||
{
|
{
|
||||||
kn.showScreenPopup(PopupsDomainViewModel, [oData.Result]);
|
require('../Knoin/Knoin.js').showScreenPopup(PopupsDomainViewModel, [oData.Result]);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
AdminSettingsDomains.prototype.onDomainListChangeRequest = function ()
|
AdminSettingsDomains.prototype.onDomainListChangeRequest = function ()
|
||||||
{
|
{
|
||||||
RL.reloadDomainList();
|
require('../Boots/AdminApp.js').reloadDomainList();
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = AdminSettingsDomains;
|
module.exports = AdminSettingsDomains;
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
_ = require('../External/underscore.js'),
|
_ = require('../External/underscore.js'),
|
||||||
ko = require('../External/ko.js'),
|
ko = require('../External/ko.js'),
|
||||||
|
|
@ -12,11 +11,8 @@
|
||||||
Utils = require('../Common/Utils.js'),
|
Utils = require('../Common/Utils.js'),
|
||||||
LinkBuilder = require('../Common/LinkBuilder.js'),
|
LinkBuilder = require('../Common/LinkBuilder.js'),
|
||||||
|
|
||||||
kn = require('../Knoin/Knoin.js'),
|
|
||||||
|
|
||||||
AppSettings = require('../Storages/AppSettings.js'),
|
AppSettings = require('../Storages/AppSettings.js'),
|
||||||
Data = require('../Storages/AdminDataStorage.js'),
|
Data = require('../Storages/AdminDataStorage.js'),
|
||||||
Remote = require('../Storages/AdminAjaxRemoteStorage.js'),
|
|
||||||
|
|
||||||
PopupsLanguagesViewModel = require('../ViewModels/Popups/PopupsLanguagesViewModel.js')
|
PopupsLanguagesViewModel = require('../ViewModels/Popups/PopupsLanguagesViewModel.js')
|
||||||
;
|
;
|
||||||
|
|
@ -69,7 +65,11 @@
|
||||||
|
|
||||||
AdminSettingsGeneral.prototype.onBuild = function ()
|
AdminSettingsGeneral.prototype.onBuild = function ()
|
||||||
{
|
{
|
||||||
var self = this;
|
var
|
||||||
|
self = this,
|
||||||
|
Remote = require('../Storages/AdminAjaxRemoteStorage.js')
|
||||||
|
;
|
||||||
|
|
||||||
_.delay(function () {
|
_.delay(function () {
|
||||||
|
|
||||||
var
|
var
|
||||||
|
|
@ -131,7 +131,7 @@
|
||||||
|
|
||||||
AdminSettingsGeneral.prototype.selectLanguage = function ()
|
AdminSettingsGeneral.prototype.selectLanguage = function ()
|
||||||
{
|
{
|
||||||
kn.showScreenPopup(PopupsLanguagesViewModel);
|
require('../Knoin/Knoin.js').showScreenPopup(PopupsLanguagesViewModel);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
ko = require('../External/ko.js'),
|
ko = require('../External/ko.js'),
|
||||||
moment = require('../External/moment.js'),
|
moment = require('../External/moment.js'),
|
||||||
|
|
@ -11,9 +10,6 @@
|
||||||
AppSettings = require('../Storages/AppSettings.js'),
|
AppSettings = require('../Storages/AppSettings.js'),
|
||||||
Data = require('../Storages/AdminDataStorage.js'),
|
Data = require('../Storages/AdminDataStorage.js'),
|
||||||
|
|
||||||
RL = require('../Boots/AdminApp.js'),
|
|
||||||
|
|
||||||
kn = require('../Knoin/Knoin.js'),
|
|
||||||
PopupsActivateViewModel = require('../ViewModels/Popups/PopupsActivateViewModel.js')
|
PopupsActivateViewModel = require('../ViewModels/Popups/PopupsActivateViewModel.js')
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
@ -35,7 +31,7 @@
|
||||||
this.licenseTrigger.subscribe(function () {
|
this.licenseTrigger.subscribe(function () {
|
||||||
if (this.subscriptionEnabled())
|
if (this.subscriptionEnabled())
|
||||||
{
|
{
|
||||||
RL.reloadLicensing(true);
|
require('../Boots/AdminApp.js').reloadLicensing(true);
|
||||||
}
|
}
|
||||||
}, this);
|
}, this);
|
||||||
}
|
}
|
||||||
|
|
@ -44,7 +40,7 @@
|
||||||
{
|
{
|
||||||
if (this.subscriptionEnabled())
|
if (this.subscriptionEnabled())
|
||||||
{
|
{
|
||||||
RL.reloadLicensing(false);
|
require('../Boots/AdminApp.js').reloadLicensing(false);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -55,7 +51,7 @@
|
||||||
|
|
||||||
AdminSettingsLicensing.prototype.showActivationForm = function ()
|
AdminSettingsLicensing.prototype.showActivationForm = function ()
|
||||||
{
|
{
|
||||||
kn.showScreenPopup(PopupsActivateViewModel);
|
require('../Knoin/Knoin.js').showScreenPopup(PopupsActivateViewModel);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -1,18 +1,17 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
|
_ = require('../External/underscore.js'),
|
||||||
ko = require('../External/ko.js'),
|
ko = require('../External/ko.js'),
|
||||||
|
|
||||||
Enums = require('../Common/Enums.js'),
|
Enums = require('../Common/Enums.js'),
|
||||||
Utils = require('../Common/Utils.js'),
|
Utils = require('../Common/Utils.js'),
|
||||||
|
|
||||||
AppSettings = require('../Storages/AppSettings.js'),
|
AppSettings = require('../Storages/AppSettings.js'),
|
||||||
Data = require('../Storages/AdminDataStorage.js'),
|
Data = require('../Storages/AdminDataStorage.js')
|
||||||
Remote = require('../Storages/AdminAjaxRemoteStorage.js')
|
|
||||||
;
|
;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -31,7 +30,11 @@
|
||||||
|
|
||||||
AdminSettingsLogin.prototype.onBuild = function ()
|
AdminSettingsLogin.prototype.onBuild = function ()
|
||||||
{
|
{
|
||||||
var self = this;
|
var
|
||||||
|
self = this,
|
||||||
|
Remote = require('../Storages/AdminAjaxRemoteStorage.js')
|
||||||
|
;
|
||||||
|
|
||||||
_.delay(function () {
|
_.delay(function () {
|
||||||
|
|
||||||
var f1 = Utils.settingsSaveHelperSimpleFunction(self.defaultDomainTrigger, self);
|
var f1 = Utils.settingsSaveHelperSimpleFunction(self.defaultDomainTrigger, self);
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
window = require('../External/window.js'),
|
window = require('../External/window.js'),
|
||||||
ko = require('../External/ko.js'),
|
ko = require('../External/ko.js'),
|
||||||
|
|
@ -11,8 +10,6 @@
|
||||||
Enums = require('../Common/Enums.js'),
|
Enums = require('../Common/Enums.js'),
|
||||||
Utils = require('../Common/Utils.js'),
|
Utils = require('../Common/Utils.js'),
|
||||||
|
|
||||||
RL = require('../Boots/AdminApp.js'),
|
|
||||||
|
|
||||||
Data = require('../Storages/AdminDataStorage.js'),
|
Data = require('../Storages/AdminDataStorage.js'),
|
||||||
Remote = require('../Storages/AdminAjaxRemoteStorage.js')
|
Remote = require('../Storages/AdminAjaxRemoteStorage.js')
|
||||||
;
|
;
|
||||||
|
|
@ -53,7 +50,7 @@
|
||||||
|
|
||||||
AdminSettingsPackages.prototype.onBuild = function ()
|
AdminSettingsPackages.prototype.onBuild = function ()
|
||||||
{
|
{
|
||||||
RL.reloadPackagesList();
|
require('../Boots/AdminApp.js').reloadPackagesList();
|
||||||
};
|
};
|
||||||
|
|
||||||
AdminSettingsPackages.prototype.requestHelper = function (oPackage, bInstall)
|
AdminSettingsPackages.prototype.requestHelper = function (oPackage, bInstall)
|
||||||
|
|
@ -88,7 +85,7 @@
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
RL.reloadPackagesList();
|
require('../Boots/AdminApp.js').reloadPackagesList();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
_ = require('../External/underscore.js'),
|
_ = require('../External/underscore.js'),
|
||||||
ko = require('../External/ko.js'),
|
ko = require('../External/ko.js'),
|
||||||
|
|
@ -15,8 +14,6 @@
|
||||||
Data = require('../Storages/AdminDataStorage.js'),
|
Data = require('../Storages/AdminDataStorage.js'),
|
||||||
Remote = require('../Storages/AdminAjaxRemoteStorage.js'),
|
Remote = require('../Storages/AdminAjaxRemoteStorage.js'),
|
||||||
|
|
||||||
RL = require('../Boots/AdminApp.js'),
|
|
||||||
|
|
||||||
PopupsPluginViewModel = require('../ViewModels/Popups/PopupsPluginViewModel.js')
|
PopupsPluginViewModel = require('../ViewModels/Popups/PopupsPluginViewModel.js')
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
@ -82,14 +79,14 @@
|
||||||
AdminSettingsPlugins.prototype.onShow = function ()
|
AdminSettingsPlugins.prototype.onShow = function ()
|
||||||
{
|
{
|
||||||
this.pluginsError('');
|
this.pluginsError('');
|
||||||
RL.reloadPluginList();
|
require('../Boots/AdminApp.js').reloadPluginList();
|
||||||
};
|
};
|
||||||
|
|
||||||
AdminSettingsPlugins.prototype.onPluginLoadRequest = function (sResult, oData)
|
AdminSettingsPlugins.prototype.onPluginLoadRequest = function (sResult, oData)
|
||||||
{
|
{
|
||||||
if (Enums.StorageResultType.Success === sResult && oData && oData.Result)
|
if (Enums.StorageResultType.Success === sResult && oData && oData.Result)
|
||||||
{
|
{
|
||||||
kn.showScreenPopup(PopupsPluginViewModel, [oData.Result]);
|
require('../Knoin/Knoin.js').showScreenPopup(PopupsPluginViewModel, [oData.Result]);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -110,7 +107,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
RL.reloadPluginList();
|
require('../Boots/AdminApp.js').reloadPluginList();
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = AdminSettingsPlugins;
|
module.exports = AdminSettingsPlugins;
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
_ = require('../External/underscore.js'),
|
_ = require('../External/underscore.js'),
|
||||||
ko = require('../External/ko.js'),
|
ko = require('../External/ko.js'),
|
||||||
|
|
@ -94,6 +93,10 @@
|
||||||
|
|
||||||
AdminSettingsSecurity.prototype.onBuild = function ()
|
AdminSettingsSecurity.prototype.onBuild = function ()
|
||||||
{
|
{
|
||||||
|
var
|
||||||
|
Remote = require('../Storages/AdminAjaxRemoteStorage.js')
|
||||||
|
;
|
||||||
|
|
||||||
this.capaOpenPGP.subscribe(function (bValue) {
|
this.capaOpenPGP.subscribe(function (bValue) {
|
||||||
Remote.saveAdminConfig(Utils.emptyFunction, {
|
Remote.saveAdminConfig(Utils.emptyFunction, {
|
||||||
'CapaOpenPGP': bValue ? '1' : '0'
|
'CapaOpenPGP': bValue ? '1' : '0'
|
||||||
|
|
|
||||||
|
|
@ -1,18 +1,14 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
_ = require('../External/underscore.js'),
|
_ = require('../External/underscore.js'),
|
||||||
ko = require('../External/ko.js'),
|
ko = require('../External/ko.js'),
|
||||||
|
|
||||||
Enums = require('../Common/Enums.js'),
|
Enums = require('../Common/Enums.js'),
|
||||||
Utils = require('../Common/Utils.js'),
|
Utils = require('../Common/Utils.js')
|
||||||
|
|
||||||
Data = require('../Storages/AdminDataStorage.js'),
|
|
||||||
Remote = require('../Storages/AdminAjaxRemoteStorage.js')
|
|
||||||
;
|
;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -20,6 +16,8 @@
|
||||||
*/
|
*/
|
||||||
function AdminSettingsSocial()
|
function AdminSettingsSocial()
|
||||||
{
|
{
|
||||||
|
var Data = require('../Storages/AdminDataStorage.js');
|
||||||
|
|
||||||
this.googleEnable = Data.googleEnable;
|
this.googleEnable = Data.googleEnable;
|
||||||
this.googleClientID = Data.googleClientID;
|
this.googleClientID = Data.googleClientID;
|
||||||
this.googleApiKey = Data.googleApiKey;
|
this.googleApiKey = Data.googleApiKey;
|
||||||
|
|
@ -48,7 +46,11 @@
|
||||||
|
|
||||||
AdminSettingsSocial.prototype.onBuild = function ()
|
AdminSettingsSocial.prototype.onBuild = function ()
|
||||||
{
|
{
|
||||||
var self = this;
|
var
|
||||||
|
self = this,
|
||||||
|
Remote = require('../Storages/AdminAjaxRemoteStorage.js')
|
||||||
|
;
|
||||||
|
|
||||||
_.delay(function () {
|
_.delay(function () {
|
||||||
|
|
||||||
var
|
var
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
$ = require('../External/jquery.js'),
|
$ = require('../External/jquery.js'),
|
||||||
_ = require('../External/underscore.js'),
|
_ = require('../External/underscore.js'),
|
||||||
|
|
@ -19,7 +18,6 @@
|
||||||
|
|
||||||
AppSettings = require('../Storages/AppSettings.js'),
|
AppSettings = require('../Storages/AppSettings.js'),
|
||||||
|
|
||||||
kn = require('../Knoin/Knoin.js'),
|
|
||||||
KnoinAbstractBoot = require('../Knoin/KnoinAbstractBoot.js')
|
KnoinAbstractBoot = require('../Knoin/KnoinAbstractBoot.js')
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
@ -143,6 +141,7 @@
|
||||||
AbstractApp.prototype.loginAndLogoutReload = function (bLogout, bClose)
|
AbstractApp.prototype.loginAndLogoutReload = function (bLogout, bClose)
|
||||||
{
|
{
|
||||||
var
|
var
|
||||||
|
kn = require('../Knoin/Knoin.js'),
|
||||||
sCustomLogoutLink = Utils.pString(AppSettings.settingsGet('CustomLogoutLink')),
|
sCustomLogoutLink = Utils.pString(AppSettings.settingsGet('CustomLogoutLink')),
|
||||||
bInIframe = !!AppSettings.settingsGet('InIframe')
|
bInIframe = !!AppSettings.settingsGet('InIframe')
|
||||||
;
|
;
|
||||||
|
|
@ -192,15 +191,6 @@
|
||||||
window.history.back();
|
window.history.back();
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* @param {string} sQuery
|
|
||||||
* @param {Function} fCallback
|
|
||||||
*/
|
|
||||||
AbstractApp.prototype.getAutocomplete = function (sQuery, fCallback)
|
|
||||||
{
|
|
||||||
fCallback([], sQuery);
|
|
||||||
};
|
|
||||||
|
|
||||||
AbstractApp.prototype.bootstart = function ()
|
AbstractApp.prototype.bootstart = function ()
|
||||||
{
|
{
|
||||||
Events.pub('rl.bootstart');
|
Events.pub('rl.bootstart');
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
ko = require('../External/ko.js'),
|
ko = require('../External/ko.js'),
|
||||||
_ = require('../External/underscore.js'),
|
_ = require('../External/underscore.js'),
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
window = require('../External/window.js'),
|
window = require('../External/window.js'),
|
||||||
|
_ = require('../External/underscore.js'),
|
||||||
$ = require('../External/jquery.js'),
|
$ = require('../External/jquery.js'),
|
||||||
$window = require('../External/$window.js'),
|
$window = require('../External/$window.js'),
|
||||||
$html = require('../External/$html.js'),
|
$html = require('../External/$html.js'),
|
||||||
|
|
@ -15,15 +15,15 @@
|
||||||
Utils = require('../Common/Utils.js')
|
Utils = require('../Common/Utils.js')
|
||||||
;
|
;
|
||||||
|
|
||||||
module.exports = function (RL) {
|
module.exports = function (App) {
|
||||||
|
|
||||||
Globals.__RL = RL;
|
Globals.__RL = App;
|
||||||
|
|
||||||
RL.setupSettings();
|
App.setupSettings();
|
||||||
|
|
||||||
Plugins.__boot = RL;
|
Plugins.__boot = App;
|
||||||
Plugins.__remote = RL.remote();
|
Plugins.__remote = App.remote();
|
||||||
Plugins.__data = RL.data();
|
Plugins.__data = App.data();
|
||||||
|
|
||||||
$html.addClass(Globals.bMobileDevice ? 'mobile' : 'no-mobile');
|
$html.addClass(Globals.bMobileDevice ? 'mobile' : 'no-mobile');
|
||||||
|
|
||||||
|
|
@ -58,7 +58,7 @@
|
||||||
|
|
||||||
_.delay(function () {
|
_.delay(function () {
|
||||||
|
|
||||||
RL.bootstart();
|
App.bootstart();
|
||||||
$html.removeClass('no-js rl-booted-trigger').addClass('rl-booted');
|
$html.removeClass('no-js rl-booted-trigger').addClass('rl-booted');
|
||||||
|
|
||||||
}, 50);
|
}, 50);
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
window = require('../External/window.js'),
|
window = require('../External/window.js'),
|
||||||
$ = require('../External/jquery.js'),
|
$ = require('../External/jquery.js'),
|
||||||
|
|
@ -26,10 +25,12 @@
|
||||||
Cache = require('../Storages/WebMailCacheStorage.js'),
|
Cache = require('../Storages/WebMailCacheStorage.js'),
|
||||||
Remote = require('../Storages/WebMailAjaxRemoteStorage.js'),
|
Remote = require('../Storages/WebMailAjaxRemoteStorage.js'),
|
||||||
|
|
||||||
|
EmailModel = require('../Models/EmailModel.js'),
|
||||||
FolderModel = require('../Models/FolderModel.js'),
|
FolderModel = require('../Models/FolderModel.js'),
|
||||||
MessageModel = require('../Models/MessageModel.js'),
|
MessageModel = require('../Models/MessageModel.js'),
|
||||||
AccountModel = require('../Models/AccountModel.js'),
|
AccountModel = require('../Models/AccountModel.js'),
|
||||||
IdentityModel = require('../Models/IdentityModel.js'),
|
IdentityModel = require('../Models/IdentityModel.js'),
|
||||||
|
OpenPgpKeyModel = require('../Models/OpenPgpKeyModel.js'),
|
||||||
|
|
||||||
PopupsFolderSystemViewModel = require('../ViewModels/Popups/PopupsAskViewModel.js'),
|
PopupsFolderSystemViewModel = require('../ViewModels/Popups/PopupsAskViewModel.js'),
|
||||||
PopupsAskViewModel = require('../ViewModels/Popups/PopupsAskViewModel.js'),
|
PopupsAskViewModel = require('../ViewModels/Popups/PopupsAskViewModel.js'),
|
||||||
|
|
@ -90,6 +91,7 @@
|
||||||
}, 60000 * 5);
|
}, 60000 * 5);
|
||||||
|
|
||||||
$.wakeUp(function () {
|
$.wakeUp(function () {
|
||||||
|
|
||||||
Remote.jsVersion(function (sResult, oData) {
|
Remote.jsVersion(function (sResult, oData) {
|
||||||
if (Enums.StorageResultType.Success === sResult && oData && !oData.Result)
|
if (Enums.StorageResultType.Success === sResult && oData && !oData.Result)
|
||||||
{
|
{
|
||||||
|
|
@ -103,6 +105,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, self.settingsGet('Version'));
|
}, self.settingsGet('Version'));
|
||||||
|
|
||||||
}, {}, 60 * 60 * 1000);
|
}, {}, 60 * 60 * 1000);
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -176,9 +179,9 @@
|
||||||
'SettingsSecurity', 'SETTINGS_LABELS/LABEL_SECURITY_NAME', 'security');
|
'SettingsSecurity', 'SETTINGS_LABELS/LABEL_SECURITY_NAME', 'security');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!AppSettings.settingsGet('AllowGoogleSocial') &&
|
if (AppSettings.settingsGet('AllowGoogleSocial') ||
|
||||||
!AppSettings.settingsGet('AllowFacebookSocial') &&
|
AppSettings.settingsGet('AllowFacebookSocial') ||
|
||||||
!AppSettings.settingsGet('AllowTwitterSocial'))
|
AppSettings.settingsGet('AllowTwitterSocial'))
|
||||||
{
|
{
|
||||||
kn.addSettingsViewModel(SettingsSocial,
|
kn.addSettingsViewModel(SettingsSocial,
|
||||||
'SettingsSocial', 'SETTINGS_LABELS/LABEL_SOCIAL_NAME', 'social');
|
'SettingsSocial', 'SETTINGS_LABELS/LABEL_SOCIAL_NAME', 'social');
|
||||||
|
|
@ -272,7 +275,7 @@
|
||||||
|
|
||||||
RainLoopApp.prototype.reloadMessageListHelper = function (bEmptyList)
|
RainLoopApp.prototype.reloadMessageListHelper = function (bEmptyList)
|
||||||
{
|
{
|
||||||
self.reloadMessageList(bEmptyList);
|
this.reloadMessageList(bEmptyList);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -1081,6 +1084,7 @@
|
||||||
RainLoopApp.prototype.folderResponseParseRec = function (sNamespace, aFolders)
|
RainLoopApp.prototype.folderResponseParseRec = function (sNamespace, aFolders)
|
||||||
{
|
{
|
||||||
var
|
var
|
||||||
|
self = this,
|
||||||
iIndex = 0,
|
iIndex = 0,
|
||||||
iLen = 0,
|
iLen = 0,
|
||||||
oFolder = null,
|
oFolder = null,
|
||||||
|
|
@ -1110,10 +1114,7 @@
|
||||||
|
|
||||||
if (oCacheFolder)
|
if (oCacheFolder)
|
||||||
{
|
{
|
||||||
if (Globals.__RL)
|
oCacheFolder.collapsed(!self.isFolderExpanded(oCacheFolder.fullNameHash));
|
||||||
{
|
|
||||||
oCacheFolder.collapsed(!Globals.__RL.isFolderExpanded(oCacheFolder.fullNameHash));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (oFolder.Extended)
|
if (oFolder.Extended)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,9 @@
|
||||||
// Base64 encode / decode
|
// Base64 encode / decode
|
||||||
// http://www.webtoolkit.info/
|
// http://www.webtoolkit.info/
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
/*jslint bitwise: true*/
|
/*jslint bitwise: true*/
|
||||||
var Base64 = {
|
var Base64 = {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var Consts = {};
|
var Consts = {};
|
||||||
|
|
||||||
Consts.Values = {};
|
Consts.Values = {};
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var Enums = {};
|
var Enums = {};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
_ = require('../External/underscore.js'),
|
_ = require('../External/underscore.js'),
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
Globals = {},
|
Globals = {},
|
||||||
window = require('../External/window.js'),
|
window = require('../External/window.js'),
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,11 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
window = require('../External/window.js'),
|
window = require('../External/window.js'),
|
||||||
Utils = require('./Utils.js'),
|
Utils = require('./Utils.js')
|
||||||
AppSettings = require('../Storages/AppSettings.js')
|
|
||||||
;
|
;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -15,6 +13,8 @@
|
||||||
*/
|
*/
|
||||||
function LinkBuilder()
|
function LinkBuilder()
|
||||||
{
|
{
|
||||||
|
var AppSettings = require('../Storages/AppSettings.js');
|
||||||
|
|
||||||
this.sBase = '#/';
|
this.sBase = '#/';
|
||||||
this.sServer = './?';
|
this.sServer = './?';
|
||||||
this.sVersion = AppSettings.settingsGet('Version');
|
this.sVersion = AppSettings.settingsGet('Version');
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
window = require('../External/window.js'),
|
window = require('../External/window.js'),
|
||||||
|
_ = require('../External/underscore.js'),
|
||||||
Globals = require('./Globals.js'),
|
Globals = require('./Globals.js'),
|
||||||
AppSettings = require('../Storages/AppSettings.js')
|
AppSettings = require('../Storages/AppSettings.js')
|
||||||
;
|
;
|
||||||
|
|
@ -19,18 +19,17 @@
|
||||||
*/
|
*/
|
||||||
function NewHtmlEditorWrapper(oElement, fOnBlur, fOnReady, fOnModeChange)
|
function NewHtmlEditorWrapper(oElement, fOnBlur, fOnReady, fOnModeChange)
|
||||||
{
|
{
|
||||||
var self = this;
|
this.editor = null;
|
||||||
self.editor = null;
|
this.iBlurTimer = 0;
|
||||||
self.iBlurTimer = 0;
|
this.fOnBlur = fOnBlur || null;
|
||||||
self.fOnBlur = fOnBlur || null;
|
this.fOnReady = fOnReady || null;
|
||||||
self.fOnReady = fOnReady || null;
|
this.fOnModeChange = fOnModeChange || null;
|
||||||
self.fOnModeChange = fOnModeChange || null;
|
|
||||||
|
|
||||||
self.$element = $(oElement);
|
this.$element = $(oElement);
|
||||||
|
|
||||||
self.resize = _.throttle(_.bind(self.resize, self), 100);
|
this.resize = _.throttle(_.bind(this.resize, this), 100);
|
||||||
|
|
||||||
self.init();
|
this.init();
|
||||||
}
|
}
|
||||||
|
|
||||||
NewHtmlEditorWrapper.prototype.blurTrigger = function ()
|
NewHtmlEditorWrapper.prototype.blurTrigger = function ()
|
||||||
|
|
@ -38,8 +37,8 @@
|
||||||
if (this.fOnBlur)
|
if (this.fOnBlur)
|
||||||
{
|
{
|
||||||
var self = this;
|
var self = this;
|
||||||
window.clearTimeout(self.iBlurTimer);
|
window.clearTimeout(this.iBlurTimer);
|
||||||
self.iBlurTimer = window.setTimeout(function () {
|
this.iBlurTimer = window.setTimeout(function () {
|
||||||
self.fOnBlur();
|
self.fOnBlur();
|
||||||
}, 200);
|
}, 200);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
Plugins = {
|
Plugins = {
|
||||||
__boot: null,
|
__boot: null,
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
$ = require('../External/jquery.js'),
|
$ = require('../External/jquery.js'),
|
||||||
_ = require('../External/underscore.js'),
|
_ = require('../External/underscore.js'),
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
Utils = {},
|
Utils = {},
|
||||||
|
|
||||||
|
|
@ -13,6 +12,7 @@
|
||||||
window = require('../External/window.js'),
|
window = require('../External/window.js'),
|
||||||
$window = require('../External/$window.js'),
|
$window = require('../External/$window.js'),
|
||||||
$html = require('../External/$html.js'),
|
$html = require('../External/$html.js'),
|
||||||
|
$div = require('../External/$div.js'),
|
||||||
$doc = require('../External/$doc.js'),
|
$doc = require('../External/$doc.js'),
|
||||||
NotificationClass = require('../External/NotificationClass.js'),
|
NotificationClass = require('../External/NotificationClass.js'),
|
||||||
|
|
||||||
|
|
@ -462,14 +462,14 @@
|
||||||
*/
|
*/
|
||||||
Utils.inFocus = function ()
|
Utils.inFocus = function ()
|
||||||
{
|
{
|
||||||
if (document.activeElement)
|
if (window.document.activeElement)
|
||||||
{
|
{
|
||||||
if (Utils.isUnd(document.activeElement.__inFocusCache))
|
if (Utils.isUnd(window.document.activeElement.__inFocusCache))
|
||||||
{
|
{
|
||||||
document.activeElement.__inFocusCache = $(document.activeElement).is('input,textarea,iframe,.cke_editable');
|
window.document.activeElement.__inFocusCache = $(window.document.activeElement).is('input,textarea,iframe,.cke_editable');
|
||||||
}
|
}
|
||||||
|
|
||||||
return !!document.activeElement.__inFocusCache;
|
return !!window.document.activeElement.__inFocusCache;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
@ -477,12 +477,12 @@
|
||||||
|
|
||||||
Utils.removeInFocus = function ()
|
Utils.removeInFocus = function ()
|
||||||
{
|
{
|
||||||
if (document && document.activeElement && document.activeElement.blur)
|
if (window.document && window.document.activeElement && window.document.activeElement.blur)
|
||||||
{
|
{
|
||||||
var oA = $(document.activeElement);
|
var oA = $(window.document.activeElement);
|
||||||
if (oA.is('input,textarea'))
|
if (oA.is('input,textarea'))
|
||||||
{
|
{
|
||||||
document.activeElement.blur();
|
window.document.activeElement.blur();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
@ -497,9 +497,9 @@
|
||||||
oSel.removeAllRanges();
|
oSel.removeAllRanges();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (document && document.selection && document.selection.empty)
|
else if (window.document && window.document.selection && window.document.selection.empty)
|
||||||
{
|
{
|
||||||
document.selection.empty();
|
window.document.selection.empty();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -919,11 +919,14 @@
|
||||||
{
|
{
|
||||||
var
|
var
|
||||||
fResult = fExecute ? function () {
|
fResult = fExecute ? function () {
|
||||||
if (fResult.canExecute && fResult.canExecute())
|
|
||||||
|
if (fResult && fResult.canExecute && fResult.canExecute())
|
||||||
{
|
{
|
||||||
fExecute.apply(oContext, Array.prototype.slice.call(arguments));
|
fExecute.apply(oContext, Array.prototype.slice.call(arguments));
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
} : function () {}
|
} : function () {}
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
@ -1466,8 +1469,6 @@
|
||||||
return Utils.settingsSaveHelperFunction(null, koTrigger, oContext, 1000);
|
return Utils.settingsSaveHelperFunction(null, koTrigger, oContext, 1000);
|
||||||
};
|
};
|
||||||
|
|
||||||
Utils.$div = $('<div></div>');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {string} sHtml
|
* @param {string} sHtml
|
||||||
* @return {string}
|
* @return {string}
|
||||||
|
|
@ -1576,7 +1577,7 @@
|
||||||
.replace(/<[^>]*>/gm, '')
|
.replace(/<[^>]*>/gm, '')
|
||||||
;
|
;
|
||||||
|
|
||||||
sText = Utils.$div.html(sText).text();
|
sText = $div.html(sText).text();
|
||||||
|
|
||||||
sText = sText
|
sText = sText
|
||||||
.replace(/\n[ \t]+/gm, '\n')
|
.replace(/\n[ \t]+/gm, '\n')
|
||||||
|
|
@ -1713,7 +1714,7 @@
|
||||||
{
|
{
|
||||||
if ($.fn && $.fn.linkify)
|
if ($.fn && $.fn.linkify)
|
||||||
{
|
{
|
||||||
sHtml = Utils.$div.html(sHtml.replace(/&/ig, 'amp_amp_12345_amp_amp'))
|
sHtml = $div.html(sHtml.replace(/&/ig, 'amp_amp_12345_amp_amp'))
|
||||||
.linkify()
|
.linkify()
|
||||||
.find('.linkified').removeClass('linkified').end()
|
.find('.linkified').removeClass('linkified').end()
|
||||||
.html()
|
.html()
|
||||||
|
|
@ -1731,7 +1732,7 @@
|
||||||
|
|
||||||
var
|
var
|
||||||
aDiff = [0, 0],
|
aDiff = [0, 0],
|
||||||
oCanvas = document.createElement('canvas'),
|
oCanvas = window.document.createElement('canvas'),
|
||||||
oCtx = oCanvas.getContext('2d')
|
oCtx = oCanvas.getContext('2d')
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
|
||||||
1
dev/External/$div.js
vendored
1
dev/External/$div.js
vendored
|
|
@ -1,5 +1,4 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
module.exports = require('./jquery.js')('<div></div>');
|
module.exports = require('./jquery.js')('<div></div>');
|
||||||
1
dev/External/$doc.js
vendored
1
dev/External/$doc.js
vendored
|
|
@ -1,5 +1,4 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
module.exports = require('./jquery.js')(window.document);
|
module.exports = require('./jquery.js')(window.document);
|
||||||
1
dev/External/$html.js
vendored
1
dev/External/$html.js
vendored
|
|
@ -1,5 +1,4 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
module.exports = require('./jquery.js')('html');
|
module.exports = require('./jquery.js')('html');
|
||||||
1
dev/External/$window.js
vendored
1
dev/External/$window.js
vendored
|
|
@ -1,5 +1,4 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
module.exports = require('./jquery.js')(window);
|
module.exports = require('./jquery.js')(window);
|
||||||
1
dev/External/AppData.js
vendored
1
dev/External/AppData.js
vendored
|
|
@ -1,5 +1,4 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
module.exports = require('./window.js')['rainloopAppData'] || {};
|
module.exports = require('./window.js')['rainloopAppData'] || {};
|
||||||
1
dev/External/JSON.js
vendored
1
dev/External/JSON.js
vendored
|
|
@ -1,5 +1,4 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
module.exports = JSON;
|
module.exports = JSON;
|
||||||
1
dev/External/Jua.js
vendored
1
dev/External/Jua.js
vendored
|
|
@ -1,5 +1,4 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
module.exports = Jua;
|
module.exports = Jua;
|
||||||
1
dev/External/NotificationClass.js
vendored
1
dev/External/NotificationClass.js
vendored
|
|
@ -1,5 +1,4 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var window = require('./window.js');
|
var window = require('./window.js');
|
||||||
|
|
|
||||||
1
dev/External/crossroads.js
vendored
1
dev/External/crossroads.js
vendored
|
|
@ -1,5 +1,4 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
module.exports = crossroads;
|
module.exports = crossroads;
|
||||||
1
dev/External/hasher.js
vendored
1
dev/External/hasher.js
vendored
|
|
@ -1,5 +1,4 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
module.exports = hasher;
|
module.exports = hasher;
|
||||||
1
dev/External/ifvisible.js
vendored
1
dev/External/ifvisible.js
vendored
|
|
@ -1,5 +1,4 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
module.exports = ifvisible;
|
module.exports = ifvisible;
|
||||||
1
dev/External/jquery.js
vendored
1
dev/External/jquery.js
vendored
|
|
@ -1,5 +1,4 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
module.exports = $;
|
module.exports = $;
|
||||||
1
dev/External/key.js
vendored
1
dev/External/key.js
vendored
|
|
@ -1,5 +1,4 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
module.exports = key;
|
module.exports = key;
|
||||||
61
dev/External/ko.js
vendored
61
dev/External/ko.js
vendored
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
|
||||||
(function (module) {
|
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
(function (module, ko) {
|
||||||
|
|
||||||
var
|
var
|
||||||
window = require('./window.js'),
|
window = require('./window.js'),
|
||||||
_ = require('./underscore.js'),
|
_ = require('./underscore.js'),
|
||||||
|
|
@ -55,10 +54,10 @@
|
||||||
ko.bindingHandlers.tooltip2 = {
|
ko.bindingHandlers.tooltip2 = {
|
||||||
'init': function (oElement, fValueAccessor) {
|
'init': function (oElement, fValueAccessor) {
|
||||||
var
|
var
|
||||||
|
Globals = require('../Common/Globals.js'),
|
||||||
$oEl = $(oElement),
|
$oEl = $(oElement),
|
||||||
sClass = $oEl.data('tooltip-class') || '',
|
sClass = $oEl.data('tooltip-class') || '',
|
||||||
sPlacement = $oEl.data('tooltip-placement') || 'top',
|
sPlacement = $oEl.data('tooltip-placement') || 'top'
|
||||||
Globals = require('../Common/Globals.js')
|
|
||||||
;
|
;
|
||||||
|
|
||||||
$oEl.tooltip({
|
$oEl.tooltip({
|
||||||
|
|
@ -122,11 +121,7 @@
|
||||||
|
|
||||||
ko.bindingHandlers.registrateBootstrapDropdown = {
|
ko.bindingHandlers.registrateBootstrapDropdown = {
|
||||||
'init': function (oElement) {
|
'init': function (oElement) {
|
||||||
|
var Globals = require('../Common/Globals.js');
|
||||||
var
|
|
||||||
Globals = require('../Common/Globals.js')
|
|
||||||
;
|
|
||||||
|
|
||||||
Globals.aBootstrapDropdowns.push($(oElement));
|
Globals.aBootstrapDropdowns.push($(oElement));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
@ -167,11 +162,7 @@
|
||||||
|
|
||||||
ko.bindingHandlers.csstext = {
|
ko.bindingHandlers.csstext = {
|
||||||
'init': function (oElement, fValueAccessor) {
|
'init': function (oElement, fValueAccessor) {
|
||||||
|
var Utils = require('../Common/Utils.js');
|
||||||
var
|
|
||||||
Utils = require('../Common/Utils.js')
|
|
||||||
;
|
|
||||||
|
|
||||||
if (oElement && oElement.styleSheet && !Utils.isUnd(oElement.styleSheet.cssText))
|
if (oElement && oElement.styleSheet && !Utils.isUnd(oElement.styleSheet.cssText))
|
||||||
{
|
{
|
||||||
oElement.styleSheet.cssText = ko.utils.unwrapObservable(fValueAccessor());
|
oElement.styleSheet.cssText = ko.utils.unwrapObservable(fValueAccessor());
|
||||||
|
|
@ -182,11 +173,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'update': function (oElement, fValueAccessor) {
|
'update': function (oElement, fValueAccessor) {
|
||||||
|
var Utils = require('../Common/Utils.js');
|
||||||
var
|
|
||||||
Utils = require('../Common/Utils.js')
|
|
||||||
;
|
|
||||||
|
|
||||||
if (oElement && oElement.styleSheet && !Utils.isUnd(oElement.styleSheet.cssText))
|
if (oElement && oElement.styleSheet && !Utils.isUnd(oElement.styleSheet.cssText))
|
||||||
{
|
{
|
||||||
oElement.styleSheet.cssText = ko.utils.unwrapObservable(fValueAccessor());
|
oElement.styleSheet.cssText = ko.utils.unwrapObservable(fValueAccessor());
|
||||||
|
|
@ -268,6 +255,7 @@
|
||||||
.find('.close').click(function () {
|
.find('.close').click(function () {
|
||||||
fValueAccessor()(false);
|
fValueAccessor()(false);
|
||||||
});
|
});
|
||||||
|
|
||||||
},
|
},
|
||||||
'update': function (oElement, fValueAccessor) {
|
'update': function (oElement, fValueAccessor) {
|
||||||
$(oElement).modal(ko.utils.unwrapObservable(fValueAccessor()) ? 'show' : 'hide');
|
$(oElement).modal(ko.utils.unwrapObservable(fValueAccessor()) ? 'show' : 'hide');
|
||||||
|
|
@ -276,18 +264,14 @@
|
||||||
|
|
||||||
ko.bindingHandlers.i18nInit = {
|
ko.bindingHandlers.i18nInit = {
|
||||||
'init': function (oElement) {
|
'init': function (oElement) {
|
||||||
var
|
var Utils = require('../Common/Utils.js');
|
||||||
Utils = require('../Common/Utils.js')
|
|
||||||
;
|
|
||||||
Utils.i18nToNode(oElement);
|
Utils.i18nToNode(oElement);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
ko.bindingHandlers.i18nUpdate = {
|
ko.bindingHandlers.i18nUpdate = {
|
||||||
'update': function (oElement, fValueAccessor) {
|
'update': function (oElement, fValueAccessor) {
|
||||||
var
|
var Utils = require('../Common/Utils.js');
|
||||||
Utils = require('../Common/Utils.js')
|
|
||||||
;
|
|
||||||
ko.utils.unwrapObservable(fValueAccessor());
|
ko.utils.unwrapObservable(fValueAccessor());
|
||||||
Utils.i18nToNode(oElement);
|
Utils.i18nToNode(oElement);
|
||||||
}
|
}
|
||||||
|
|
@ -326,6 +310,7 @@
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
'update': function (oElement, fValueAccessor) {
|
'update': function (oElement, fValueAccessor) {
|
||||||
|
|
||||||
var
|
var
|
||||||
Utils = require('../Common/Utils.js'),
|
Utils = require('../Common/Utils.js'),
|
||||||
aValues = ko.utils.unwrapObservable(fValueAccessor()),
|
aValues = ko.utils.unwrapObservable(fValueAccessor()),
|
||||||
|
|
@ -360,12 +345,10 @@
|
||||||
|
|
||||||
ko.bindingHandlers.draggable = {
|
ko.bindingHandlers.draggable = {
|
||||||
'init': function (oElement, fValueAccessor, fAllBindingsAccessor) {
|
'init': function (oElement, fValueAccessor, fAllBindingsAccessor) {
|
||||||
|
|
||||||
var
|
var
|
||||||
Globals = require('../Common/Globals.js'),
|
Globals = require('../Common/Globals.js'),
|
||||||
Utils = require('../Common/Utils.js')
|
Utils = require('../Common/Utils.js')
|
||||||
;
|
;
|
||||||
|
|
||||||
if (!Globals.bMobileDevice)
|
if (!Globals.bMobileDevice)
|
||||||
{
|
{
|
||||||
var
|
var
|
||||||
|
|
@ -446,11 +429,7 @@
|
||||||
|
|
||||||
ko.bindingHandlers.droppable = {
|
ko.bindingHandlers.droppable = {
|
||||||
'init': function (oElement, fValueAccessor, fAllBindingsAccessor) {
|
'init': function (oElement, fValueAccessor, fAllBindingsAccessor) {
|
||||||
|
var Globals = require('../Common/Globals.js');
|
||||||
var
|
|
||||||
Globals = require('../Common/Globals.js')
|
|
||||||
;
|
|
||||||
|
|
||||||
if (!Globals.bMobileDevice)
|
if (!Globals.bMobileDevice)
|
||||||
{
|
{
|
||||||
var
|
var
|
||||||
|
|
@ -492,11 +471,7 @@
|
||||||
|
|
||||||
ko.bindingHandlers.nano = {
|
ko.bindingHandlers.nano = {
|
||||||
'init': function (oElement) {
|
'init': function (oElement) {
|
||||||
|
var Globals = require('../Common/Globals.js');
|
||||||
var
|
|
||||||
Globals = require('../Common/Globals.js')
|
|
||||||
;
|
|
||||||
|
|
||||||
if (!Globals.bDisableNanoScroll)
|
if (!Globals.bDisableNanoScroll)
|
||||||
{
|
{
|
||||||
$(oElement)
|
$(oElement)
|
||||||
|
|
@ -594,6 +569,8 @@
|
||||||
|
|
||||||
var
|
var
|
||||||
Utils = require('../Common/Utils.js'),
|
Utils = require('../Common/Utils.js'),
|
||||||
|
EmailModel = require('../Models/EmailModel.js'),
|
||||||
|
|
||||||
$oEl = $(oElement),
|
$oEl = $(oElement),
|
||||||
fValue = fValueAccessor(),
|
fValue = fValueAccessor(),
|
||||||
fAllBindings = fAllBindingsAccessor(),
|
fAllBindings = fAllBindingsAccessor(),
|
||||||
|
|
@ -662,10 +639,12 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
ko.bindingHandlers.contactTags = {
|
ko.bindingHandlers.contactTags = {
|
||||||
'init': function(oElement, fValueAccessor) {
|
'init': function(oElement, fValueAccessor, fAllBindingsAccessor) {
|
||||||
|
|
||||||
var
|
var
|
||||||
Utils = require('../Common/Utils.js'),
|
Utils = require('../Common/Utils.js'),
|
||||||
|
ContactTagModel = require('../Models/ContactTagModel.js'),
|
||||||
|
|
||||||
$oEl = $(oElement),
|
$oEl = $(oElement),
|
||||||
fValue = fValueAccessor(),
|
fValue = fValueAccessor(),
|
||||||
fAllBindings = fAllBindingsAccessor(),
|
fAllBindings = fAllBindingsAccessor(),
|
||||||
|
|
@ -877,6 +856,7 @@
|
||||||
ko.observable.fn.validateEmail = function ()
|
ko.observable.fn.validateEmail = function ()
|
||||||
{
|
{
|
||||||
var Utils = require('../Common/Utils.js');
|
var Utils = require('../Common/Utils.js');
|
||||||
|
|
||||||
this.hasError = ko.observable(false);
|
this.hasError = ko.observable(false);
|
||||||
|
|
||||||
this.subscribe(function (sValue) {
|
this.subscribe(function (sValue) {
|
||||||
|
|
@ -906,6 +886,7 @@
|
||||||
ko.observable.fn.validateFunc = function (fFunc)
|
ko.observable.fn.validateFunc = function (fFunc)
|
||||||
{
|
{
|
||||||
var Utils = require('../Common/Utils.js');
|
var Utils = require('../Common/Utils.js');
|
||||||
|
|
||||||
this.hasFuncError = ko.observable(false);
|
this.hasFuncError = ko.observable(false);
|
||||||
|
|
||||||
if (Utils.isFunc(fFunc))
|
if (Utils.isFunc(fFunc))
|
||||||
|
|
@ -922,4 +903,4 @@
|
||||||
|
|
||||||
module.exports = ko;
|
module.exports = ko;
|
||||||
|
|
||||||
}(module));
|
}(module, ko));
|
||||||
|
|
|
||||||
1
dev/External/moment.js
vendored
1
dev/External/moment.js
vendored
|
|
@ -1,5 +1,4 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
module.exports = moment;
|
module.exports = moment;
|
||||||
1
dev/External/ssm.js
vendored
1
dev/External/ssm.js
vendored
|
|
@ -1,5 +1,4 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
module.exports = ssm;
|
module.exports = ssm;
|
||||||
1
dev/External/underscore.js
vendored
1
dev/External/underscore.js
vendored
|
|
@ -1,5 +1,4 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
module.exports = _;
|
module.exports = _;
|
||||||
1
dev/External/window.js
vendored
1
dev/External/window.js
vendored
|
|
@ -1,5 +1,4 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
module.exports = window;
|
module.exports = window;
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
$ = require('../External/jquery.js'),
|
$ = require('../External/jquery.js'),
|
||||||
_ = require('../External/underscore.js'),
|
_ = require('../External/underscore.js'),
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @constructor
|
* @constructor
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
crossroads = require('../External/crossroads.js'),
|
crossroads = require('../External/crossroads.js'),
|
||||||
Utils = require('../Common/Utils.js')
|
Utils = require('../Common/Utils.js')
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,15 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
ko = require('../External/ko.js'),
|
ko = require('../External/ko.js'),
|
||||||
$window = require('../External/$window.js'),
|
$window = require('../External/$window.js'),
|
||||||
|
|
||||||
Utils = require('../Common/Utils.js'),
|
|
||||||
Enums = require('../Common/Enums.js'),
|
Enums = require('../Common/Enums.js'),
|
||||||
Globals = require('../Common/Globals.js')
|
Globals = require('../Common/Globals.js'),
|
||||||
|
Utils = require('../Common/Utils.js')
|
||||||
;
|
;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -87,6 +86,7 @@
|
||||||
KnoinAbstractViewModel.prototype.registerPopupKeyDown = function ()
|
KnoinAbstractViewModel.prototype.registerPopupKeyDown = function ()
|
||||||
{
|
{
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
$window.on('keydown', function (oEvent) {
|
$window.on('keydown', function (oEvent) {
|
||||||
if (oEvent && self.modalVisibility && self.modalVisibility())
|
if (oEvent && self.modalVisibility && self.modalVisibility())
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,10 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
ko = require('../External/ko.js'),
|
ko = require('../External/ko.js')
|
||||||
LinkBuilder = require('../Common/LinkBuilder.js')
|
|
||||||
;
|
;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -28,7 +26,7 @@
|
||||||
*/
|
*/
|
||||||
AccountModel.prototype.changeAccountLink = function ()
|
AccountModel.prototype.changeAccountLink = function ()
|
||||||
{
|
{
|
||||||
return LinkBuilder.change(this.email);
|
return require('../Common/LinkBuilder.js').change(this.email);
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = AccountModel;
|
module.exports = AccountModel;
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
window = require('../External/window.js'),
|
window = require('../External/window.js'),
|
||||||
Globals = require('../Common/Globals.js'),
|
Globals = require('../Common/Globals.js'),
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
ko = require('../External/ko.js'),
|
ko = require('../External/ko.js'),
|
||||||
Utils = require('../Common/Utils.js')
|
Utils = require('../Common/Utils.js')
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
_ = require('../External/underscore.js'),
|
_ = require('../External/underscore.js'),
|
||||||
ko = require('../External/ko.js'),
|
ko = require('../External/ko.js'),
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
ko = require('../External/ko.js'),
|
ko = require('../External/ko.js'),
|
||||||
Enums = require('../Common/Enums.js'),
|
Enums = require('../Common/Enums.js'),
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
ko = require('../External/ko.js'),
|
ko = require('../External/ko.js'),
|
||||||
Utils = require('../Common/Utils.js')
|
Utils = require('../Common/Utils.js')
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
Enums = require('../Common/Enums.js'),
|
Enums = require('../Common/Enums.js'),
|
||||||
Utils = require('../Common/Utils.js')
|
Utils = require('../Common/Utils.js')
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
ko = require('../External/ko.js'),
|
ko = require('../External/ko.js'),
|
||||||
Enums = require('../Common/Enums.js')
|
Enums = require('../Common/Enums.js')
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
ko = require('../External/ko.js'),
|
ko = require('../External/ko.js'),
|
||||||
Enums = require('../Common/Enums.js'),
|
Enums = require('../Common/Enums.js'),
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
_ = require('../External/underscore.js'),
|
_ = require('../External/underscore.js'),
|
||||||
ko = require('../External/ko.js'),
|
ko = require('../External/ko.js'),
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
ko = require('../External/ko.js'),
|
ko = require('../External/ko.js'),
|
||||||
Utils = require('../Common/Utils.js')
|
Utils = require('../Common/Utils.js')
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
window = require('../External/window.js'),
|
window = require('../External/window.js'),
|
||||||
$ = require('../External/jquery.js'),
|
$ = require('../External/jquery.js'),
|
||||||
|
|
@ -1081,6 +1080,7 @@
|
||||||
|
|
||||||
this.body.data('rl-plain-raw', this.plainRaw);
|
this.body.data('rl-plain-raw', this.plainRaw);
|
||||||
|
|
||||||
|
var Data = require('../Storages/WebMailDataStorage.js');
|
||||||
if (Data.capaOpenPGP())
|
if (Data.capaOpenPGP())
|
||||||
{
|
{
|
||||||
this.body.data('rl-plain-pgp-signed', !!this.isPgpSigned());
|
this.body.data('rl-plain-pgp-signed', !!this.isPgpSigned());
|
||||||
|
|
@ -1093,6 +1093,7 @@
|
||||||
|
|
||||||
MessageModel.prototype.storePgpVerifyDataToDom = function ()
|
MessageModel.prototype.storePgpVerifyDataToDom = function ()
|
||||||
{
|
{
|
||||||
|
var Data = require('../Storages/WebMailDataStorage.js');
|
||||||
if (this.body && Data.capaOpenPGP())
|
if (this.body && Data.capaOpenPGP())
|
||||||
{
|
{
|
||||||
this.body.data('rl-pgp-verify-status', this.pgpSignedVerifyStatus());
|
this.body.data('rl-pgp-verify-status', this.pgpSignedVerifyStatus());
|
||||||
|
|
@ -1109,6 +1110,7 @@
|
||||||
|
|
||||||
this.plainRaw = Utils.pString(this.body.data('rl-plain-raw'));
|
this.plainRaw = Utils.pString(this.body.data('rl-plain-raw'));
|
||||||
|
|
||||||
|
var Data = require('../Storages/WebMailDataStorage.js');
|
||||||
if (Data.capaOpenPGP())
|
if (Data.capaOpenPGP())
|
||||||
{
|
{
|
||||||
this.isPgpSigned(!!this.body.data('rl-plain-pgp-signed'));
|
this.isPgpSigned(!!this.body.data('rl-plain-pgp-signed'));
|
||||||
|
|
@ -1133,6 +1135,7 @@
|
||||||
var
|
var
|
||||||
aRes = [],
|
aRes = [],
|
||||||
mPgpMessage = null,
|
mPgpMessage = null,
|
||||||
|
Data = require('../Storages/WebMailDataStorage.js'),
|
||||||
sFrom = this.from && this.from[0] && this.from[0].email ? this.from[0].email : '',
|
sFrom = this.from && this.from[0] && this.from[0].email ? this.from[0].email : '',
|
||||||
aPublicKeys = Data.findPublicKeysByEmail(sFrom),
|
aPublicKeys = Data.findPublicKeysByEmail(sFrom),
|
||||||
oValidKey = null,
|
oValidKey = null,
|
||||||
|
|
@ -1196,6 +1199,7 @@
|
||||||
aRes = [],
|
aRes = [],
|
||||||
mPgpMessage = null,
|
mPgpMessage = null,
|
||||||
mPgpMessageDecrypted = null,
|
mPgpMessageDecrypted = null,
|
||||||
|
Data = require('../Storages/WebMailDataStorage.js'),
|
||||||
sFrom = this.from && this.from[0] && this.from[0].email ? this.from[0].email : '',
|
sFrom = this.from && this.from[0] && this.from[0].email ? this.from[0].email : '',
|
||||||
aPublicKey = Data.findPublicKeysByEmail(sFrom),
|
aPublicKey = Data.findPublicKeysByEmail(sFrom),
|
||||||
oPrivateKey = Data.findSelfPrivateKey(sPassword),
|
oPrivateKey = Data.findSelfPrivateKey(sPassword),
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,10 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
ko = require('../Externalko.js')
|
ko = require('../External/ko.js')
|
||||||
;
|
;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
$ = require('../External/jquery.js'),
|
$ = require('../External/jquery.js'),
|
||||||
_ = require('../External/underscore.js'),
|
_ = require('../External/underscore.js'),
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
_ = require('../External/underscore.js'),
|
_ = require('../External/underscore.js'),
|
||||||
KnoinAbstractScreen = require('../Knoin/KnoinAbstractScreen.js')
|
KnoinAbstractScreen = require('../Knoin/KnoinAbstractScreen.js')
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
_ = require('../External/underscore.js'),
|
_ = require('../External/underscore.js'),
|
||||||
AbstractSettings = require('./AbstractSettings.js')
|
AbstractSettings = require('./AbstractSettings.js')
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
_ = require('../External/underscore.js'),
|
_ = require('../External/underscore.js'),
|
||||||
KnoinAbstractScreen = require('../Knoin/KnoinAbstractScreen.js')
|
KnoinAbstractScreen = require('../Knoin/KnoinAbstractScreen.js')
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
_ = require('../External/underscore.js'),
|
_ = require('../External/underscore.js'),
|
||||||
$html = require('../External/$html.js'),
|
$html = require('../External/$html.js'),
|
||||||
|
|
@ -150,7 +149,7 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
Events.sub('mailbox.inbox-unread-count', function (nCount) {
|
Events.sub('mailbox.inbox-unread-count', function (nCount) {
|
||||||
Data.foldersInboxUnreadCount(nCount)
|
Data.foldersInboxUnreadCount(nCount);
|
||||||
});
|
});
|
||||||
|
|
||||||
Data.foldersInboxUnreadCount.subscribe(function () {
|
Data.foldersInboxUnreadCount.subscribe(function () {
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
_ = require('../External/underscore.js'),
|
_ = require('../External/underscore.js'),
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
window = require('../External/window.js'),
|
window = require('../External/window.js'),
|
||||||
_ = require('../External/underscore.js'),
|
_ = require('../External/underscore.js'),
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
_ = require('../External/underscore.js'),
|
_ = require('../External/underscore.js'),
|
||||||
ko = require('../External/ko.js'),
|
ko = require('../External/ko.js'),
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,14 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
ko = require('../External/ko.js'),
|
ko = require('../External/ko.js'),
|
||||||
|
|
||||||
Utils = require('../Common/Utils.js'),
|
Utils = require('../Common/Utils.js'),
|
||||||
|
|
||||||
Remote = require('../Storages/WebMailAjaxRemoteStorage.js'),
|
Remote = require('../Storages/WebMailAjaxRemoteStorage.js'),
|
||||||
|
|
||||||
Data = require('../Storages/WebMailDataStorage.js')
|
Data = require('../Storages/WebMailDataStorage.js')
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,11 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
ko = require('../External/ko.js'),
|
ko = require('../External/ko.js'),
|
||||||
Utils = require('../Common/Utils.js'),
|
Utils = require('../Common/Utils.js')
|
||||||
kn = require('../Knoin/Knoin.js'),
|
|
||||||
PopupsFilterViewModel = require('../ViewModels/Popups/PopupsFilterViewModel.js')
|
|
||||||
;
|
;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -31,6 +28,12 @@
|
||||||
|
|
||||||
SettingsFilters.prototype.addFilter = function ()
|
SettingsFilters.prototype.addFilter = function ()
|
||||||
{
|
{
|
||||||
|
var
|
||||||
|
kn = require('../Knoin/Knoin.js'),
|
||||||
|
FilterModel = require('../Models/FilterModel.js'),
|
||||||
|
PopupsFilterViewModel = require('../ViewModels/Popups/PopupsFilterViewModel.js')
|
||||||
|
;
|
||||||
|
|
||||||
kn.showScreenPopup(PopupsFilterViewModel, [new FilterModel()]);
|
kn.showScreenPopup(PopupsFilterViewModel, [new FilterModel()]);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
ko = require('../External/ko.js'),
|
ko = require('../External/ko.js'),
|
||||||
|
|
||||||
Enums = require('../Common/Enums.js'),
|
Enums = require('../Common/Enums.js'),
|
||||||
Utils = require('../Common/Utils.js'),
|
Utils = require('../Common/Utils.js'),
|
||||||
|
|
||||||
|
|
@ -17,8 +17,6 @@
|
||||||
Cache = require('../Storages/WebMailCacheStorage.js'),
|
Cache = require('../Storages/WebMailCacheStorage.js'),
|
||||||
Remote = require('../Storages/WebMailAjaxRemoteStorage.js'),
|
Remote = require('../Storages/WebMailAjaxRemoteStorage.js'),
|
||||||
|
|
||||||
RL = require('../Boots/RainLoopApp.js'),
|
|
||||||
|
|
||||||
PopupsFolderCreateViewModel = require('../ViewModels/Popups/PopupsFolderCreateViewModel.js'),
|
PopupsFolderCreateViewModel = require('../ViewModels/Popups/PopupsFolderCreateViewModel.js'),
|
||||||
PopupsFolderSystemViewModel = require('../ViewModels/Popups/PopupsFolderSystemViewModel.js')
|
PopupsFolderSystemViewModel = require('../ViewModels/Popups/PopupsFolderSystemViewModel.js')
|
||||||
;
|
;
|
||||||
|
|
@ -98,7 +96,11 @@
|
||||||
|
|
||||||
SettingsFolders.prototype.folderEditOnEnter = function (oFolder)
|
SettingsFolders.prototype.folderEditOnEnter = function (oFolder)
|
||||||
{
|
{
|
||||||
var sEditName = oFolder ? Utils.trim(oFolder.nameForEdit()) : '';
|
var
|
||||||
|
RL = require('../Boots/RainLoopApp.js'),
|
||||||
|
sEditName = oFolder ? Utils.trim(oFolder.nameForEdit()) : ''
|
||||||
|
;
|
||||||
|
|
||||||
if ('' !== sEditName && oFolder.name() !== sEditName)
|
if ('' !== sEditName && oFolder.name() !== sEditName)
|
||||||
{
|
{
|
||||||
LocalStorage.set(Enums.ClientSideKeyName.FoldersLashHash, '');
|
LocalStorage.set(Enums.ClientSideKeyName.FoldersLashHash, '');
|
||||||
|
|
@ -156,6 +158,7 @@
|
||||||
this.folderForDeletion(null);
|
this.folderForDeletion(null);
|
||||||
|
|
||||||
var
|
var
|
||||||
|
RL = require('../Boots/RainLoopApp.js'),
|
||||||
fRemoveFolder = function (oFolder) {
|
fRemoveFolder = function (oFolder) {
|
||||||
|
|
||||||
if (oFolderToRemove === oFolder)
|
if (oFolderToRemove === oFolder)
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
$ = require('../External/jquery.js'),
|
$ = require('../External/jquery.js'),
|
||||||
ko = require('../External/ko.js'),
|
ko = require('../External/ko.js'),
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
ko = require('../External/ko.js'),
|
ko = require('../External/ko.js'),
|
||||||
|
|
||||||
|
|
@ -14,8 +13,6 @@
|
||||||
Data = require('../Storages/WebMailDataStorage.js'),
|
Data = require('../Storages/WebMailDataStorage.js'),
|
||||||
Remote = require('../Storages/WebMailAjaxRemoteStorage.js'),
|
Remote = require('../Storages/WebMailAjaxRemoteStorage.js'),
|
||||||
|
|
||||||
RL = require('../Boots/RainLoopApp.js'),
|
|
||||||
|
|
||||||
kn = require('../Knoin/Knoin.js'),
|
kn = require('../Knoin/Knoin.js'),
|
||||||
PopupsIdentityViewModel = require('../ViewModels/Popups/PopupsIdentityViewModel.js')
|
PopupsIdentityViewModel = require('../ViewModels/Popups/PopupsIdentityViewModel.js')
|
||||||
;
|
;
|
||||||
|
|
@ -135,6 +132,7 @@
|
||||||
this.identityForDeletion(null);
|
this.identityForDeletion(null);
|
||||||
|
|
||||||
var
|
var
|
||||||
|
RL = require('../Boots/RainLoopApp.js'),
|
||||||
fRemoveFolder = function (oIdentity) {
|
fRemoveFolder = function (oIdentity) {
|
||||||
return oIdentityToRemove === oIdentity;
|
return oIdentityToRemove === oIdentity;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
ko = require('../External/ko.js'),
|
ko = require('../External/ko.js'),
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
ko = require('../External/ko.js'),
|
ko = require('../External/ko.js'),
|
||||||
|
|
||||||
|
|
@ -11,8 +10,6 @@
|
||||||
|
|
||||||
Data = require('../Storages/WebMailDataStorage.js'),
|
Data = require('../Storages/WebMailDataStorage.js'),
|
||||||
|
|
||||||
RL = require('../Boots/RainLoopApp.js'),
|
|
||||||
|
|
||||||
PopupsAddOpenPgpKeyViewModel = require('../ViewModels/Popups/PopupsAddOpenPgpKeyViewModel.js'),
|
PopupsAddOpenPgpKeyViewModel = require('../ViewModels/Popups/PopupsAddOpenPgpKeyViewModel.js'),
|
||||||
PopupsGenerateNewOpenPgpKeyViewModel = require('../ViewModels/Popups/PopupsGenerateNewOpenPgpKeyViewModel.js'),
|
PopupsGenerateNewOpenPgpKeyViewModel = require('../ViewModels/Popups/PopupsGenerateNewOpenPgpKeyViewModel.js'),
|
||||||
PopupsViewOpenPgpKeyViewModel = require('../ViewModels/Popups/PopupsViewOpenPgpKeyViewModel.js')
|
PopupsViewOpenPgpKeyViewModel = require('../ViewModels/Popups/PopupsViewOpenPgpKeyViewModel.js')
|
||||||
|
|
@ -80,6 +77,7 @@
|
||||||
|
|
||||||
Data.openpgpKeyring.store();
|
Data.openpgpKeyring.store();
|
||||||
|
|
||||||
|
var RL = require('../Boots/RainLoopApp.js');
|
||||||
RL.reloadOpenPgpKeys();
|
RL.reloadOpenPgpKeys();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
ko = require('../External/ko.js'),
|
ko = require('../External/ko.js'),
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,22 +1,19 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
|
||||||
(function (module) {
|
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var
|
(function (module) {
|
||||||
Utils = require('../Common/Utils.js'),
|
|
||||||
|
|
||||||
Data = require('../Storages/WebMailDataStorage.js'),
|
|
||||||
|
|
||||||
RL = require('../Boots/RainLoopApp.js')
|
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @constructor
|
* @constructor
|
||||||
*/
|
*/
|
||||||
function SettingsSocial()
|
function SettingsSocial()
|
||||||
{
|
{
|
||||||
|
var
|
||||||
|
Utils = require('../Common/Utils.js'),
|
||||||
|
RL = require('../Boots/RainLoopApp.js'),
|
||||||
|
Data = require('../Storages/WebMailDataStorage.js')
|
||||||
|
;
|
||||||
|
|
||||||
this.googleEnable = Data.googleEnable;
|
this.googleEnable = Data.googleEnable;
|
||||||
|
|
||||||
this.googleActions = Data.googleActions;
|
this.googleActions = Data.googleActions;
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
window = require('../External/window.js'),
|
window = require('../External/window.js'),
|
||||||
$ = require('../External/jquery.js'),
|
$ = require('../External/jquery.js'),
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
window = require('../External/window.js'),
|
window = require('../External/window.js'),
|
||||||
$ = require('../External/jquery.js'),
|
$ = require('../External/jquery.js'),
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
Enums = require('../Common/Enums.js'),
|
Enums = require('../Common/Enums.js'),
|
||||||
Utils = require('../Common/Utils.js'),
|
Utils = require('../Common/Utils.js'),
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
_ = require('../External/underscore.js'),
|
_ = require('../External/underscore.js'),
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
_ = require('../External/underscore.js'),
|
_ = require('../External/underscore.js'),
|
||||||
ko = require('../External/ko.js'),
|
ko = require('../External/ko.js'),
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
AppData = require('../External/AppData.js'),
|
AppData = require('../External/AppData.js'),
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
_ = require('../External/underscore.js'),
|
_ = require('../External/underscore.js'),
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
$ = require('../../External/jquery.js'),
|
$ = require('../../External/jquery.js'),
|
||||||
JSON = require('../../External/JSON.js'),
|
JSON = require('../../External/JSON.js'),
|
||||||
|
|
||||||
Consts = require('../../Common/Consts.js'),
|
Consts = require('../../Common/Consts.js'),
|
||||||
Utils = require('../../Common/Utils.js')
|
Utils = require('../../Common/Utils.js')
|
||||||
;
|
;
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
window = require('../../External/window.js'),
|
window = require('../../External/window.js'),
|
||||||
JSON = require('../../External/JSON.js'),
|
JSON = require('../../External/JSON.js'),
|
||||||
|
|
||||||
Consts = require('../../Common/Consts.js'),
|
Consts = require('../../Common/Consts.js'),
|
||||||
Utils = require('../../Common/Utils.js')
|
Utils = require('../../Common/Utils.js')
|
||||||
;
|
;
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
_ = require('../External/underscore.js'),
|
_ = require('../External/underscore.js'),
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
_ = require('../External/underscore.js'),
|
_ = require('../External/underscore.js'),
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
window = require('../External/window.js'),
|
window = require('../External/window.js'),
|
||||||
$ = require('../External/jquery.js'),
|
$ = require('../External/jquery.js'),
|
||||||
|
|
@ -325,7 +324,10 @@
|
||||||
if (Enums.Layout.NoPreview === this.layout() &&
|
if (Enums.Layout.NoPreview === this.layout() &&
|
||||||
-1 < window.location.hash.indexOf('message-preview'))
|
-1 < window.location.hash.indexOf('message-preview'))
|
||||||
{
|
{
|
||||||
RL.historyBack(); // TODO cjs
|
if (Globals.__RL)
|
||||||
|
{
|
||||||
|
Globals.__RL.historyBack();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (Enums.Layout.NoPreview === this.layout())
|
else if (Enums.Layout.NoPreview === this.layout())
|
||||||
|
|
@ -922,7 +924,10 @@
|
||||||
Cache.initMessageFlagsFromCache(oMessage);
|
Cache.initMessageFlagsFromCache(oMessage);
|
||||||
if (oMessage.unseen())
|
if (oMessage.unseen())
|
||||||
{
|
{
|
||||||
RL.setMessageSeen(oMessage);
|
if (Globals.__RL)
|
||||||
|
{
|
||||||
|
Globals.__RL.setMessageSeen(oMessage);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Utils.windowResize();
|
Utils.windowResize();
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
_ = require('../External/underscore.js'),
|
_ = require('../External/underscore.js'),
|
||||||
ko = require('../External/ko.js'),
|
ko = require('../External/ko.js'),
|
||||||
|
|
@ -18,8 +17,6 @@
|
||||||
Data = require('../Storages/WebMailDataStorage.js'),
|
Data = require('../Storages/WebMailDataStorage.js'),
|
||||||
Remote = require('../Storages/WebMailAjaxRemoteStorage.js'),
|
Remote = require('../Storages/WebMailAjaxRemoteStorage.js'),
|
||||||
|
|
||||||
RL = require('../Boots/RainLoopApp.js'),
|
|
||||||
|
|
||||||
PopupsKeyboardShortcutsHelpViewModel = require('../ViewModels/Popups/PopupsKeyboardShortcutsHelpViewModel.js'),
|
PopupsKeyboardShortcutsHelpViewModel = require('../ViewModels/Popups/PopupsKeyboardShortcutsHelpViewModel.js'),
|
||||||
PopupsAddAccountViewModel = require('../ViewModels/Popups/PopupsKeyboardShortcutsHelpViewModel.js'),
|
PopupsAddAccountViewModel = require('../ViewModels/Popups/PopupsKeyboardShortcutsHelpViewModel.js'),
|
||||||
|
|
||||||
|
|
@ -91,6 +88,7 @@
|
||||||
|
|
||||||
AbstractSystemDropDownViewModel.prototype.logoutClick = function ()
|
AbstractSystemDropDownViewModel.prototype.logoutClick = function ()
|
||||||
{
|
{
|
||||||
|
var RL = require('../Boots/RainLoopApp.js');
|
||||||
Remote.logout(function () {
|
Remote.logout(function () {
|
||||||
if (window.__rlah_clear)
|
if (window.__rlah_clear)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
_ = require('../External/underscore.js'),
|
_ = require('../External/underscore.js'),
|
||||||
ko = require('../External/ko.js'),
|
ko = require('../External/ko.js'),
|
||||||
|
|
@ -13,8 +12,6 @@
|
||||||
|
|
||||||
Remote = require('../Storages/AdminAjaxRemoteStorage.js'),
|
Remote = require('../Storages/AdminAjaxRemoteStorage.js'),
|
||||||
|
|
||||||
RL = require('../Boots/AdminApp.js'),
|
|
||||||
|
|
||||||
kn = require('../Knoin/Knoin.js'),
|
kn = require('../Knoin/Knoin.js'),
|
||||||
KnoinAbstractViewModel = require('../Knoin/KnoinAbstractViewModel.js')
|
KnoinAbstractViewModel = require('../Knoin/KnoinAbstractViewModel.js')
|
||||||
;
|
;
|
||||||
|
|
@ -66,6 +63,7 @@
|
||||||
{
|
{
|
||||||
if (oData.Result)
|
if (oData.Result)
|
||||||
{
|
{
|
||||||
|
var RL = require('../Boots/AdminApp.js');
|
||||||
RL.loginAndLogoutReload();
|
RL.loginAndLogoutReload();
|
||||||
}
|
}
|
||||||
else if (oData.ErrorCode)
|
else if (oData.ErrorCode)
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
kn = require('../Knoin/Knoin.js'),
|
kn = require('../Knoin/Knoin.js'),
|
||||||
Globals = require('../Common/Globals.js'),
|
Globals = require('../Common/Globals.js'),
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
ko = require('../External/ko.js'),
|
ko = require('../External/ko.js'),
|
||||||
|
|
||||||
|
|
@ -11,8 +10,6 @@
|
||||||
Data = require('../Storages/AdminDataStorage.js'),
|
Data = require('../Storages/AdminDataStorage.js'),
|
||||||
Remote = require('../Storages/AdminAjaxRemoteStorage.js'),
|
Remote = require('../Storages/AdminAjaxRemoteStorage.js'),
|
||||||
|
|
||||||
RL = require('../Boots/AdminApp.js'),
|
|
||||||
|
|
||||||
kn = require('../Knoin/Knoin.js'),
|
kn = require('../Knoin/Knoin.js'),
|
||||||
KnoinAbstractViewModel = require('../Knoin/KnoinAbstractViewModel.js')
|
KnoinAbstractViewModel = require('../Knoin/KnoinAbstractViewModel.js')
|
||||||
;
|
;
|
||||||
|
|
@ -38,6 +35,7 @@
|
||||||
AdminPaneViewModel.prototype.logoutClick = function ()
|
AdminPaneViewModel.prototype.logoutClick = function ()
|
||||||
{
|
{
|
||||||
Remote.adminLogout(function () {
|
Remote.adminLogout(function () {
|
||||||
|
var RL = require('../Boots/AdminApp.js');
|
||||||
RL.loginAndLogoutReload();
|
RL.loginAndLogoutReload();
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
window = require('../External/window.js'),
|
window = require('../External/window.js'),
|
||||||
$ = require('../External/jquery.js'),
|
$ = require('../External/jquery.js'),
|
||||||
|
|
@ -18,8 +17,6 @@
|
||||||
Data = require('../Storages/WebMailDataStorage.js'),
|
Data = require('../Storages/WebMailDataStorage.js'),
|
||||||
Remote = require('../Storages/WebMailAjaxRemoteStorage.js'),
|
Remote = require('../Storages/WebMailAjaxRemoteStorage.js'),
|
||||||
|
|
||||||
RL = require('../Boots/RainLoopApp.js'),
|
|
||||||
|
|
||||||
kn = require('../Knoin/Knoin.js'),
|
kn = require('../Knoin/Knoin.js'),
|
||||||
KnoinAbstractViewModel = require('../Knoin/KnoinAbstractViewModel.js'),
|
KnoinAbstractViewModel = require('../Knoin/KnoinAbstractViewModel.js'),
|
||||||
|
|
||||||
|
|
@ -135,6 +132,7 @@
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
var RL = require('../Boots/RainLoopApp.js');
|
||||||
RL.loginAndLogoutReload();
|
RL.loginAndLogoutReload();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -233,6 +231,7 @@
|
||||||
|
|
||||||
window.open(LinkBuilder.socialTwitter(), 'Twitter',
|
window.open(LinkBuilder.socialTwitter(), 'Twitter',
|
||||||
'left=200,top=100,width=650,height=335,menubar=no,status=no,resizable=yes,scrollbars=yes');
|
'left=200,top=100,width=650,height=335,menubar=no,status=no,resizable=yes,scrollbars=yes');
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
}, function () {
|
}, function () {
|
||||||
|
|
@ -293,6 +292,8 @@
|
||||||
if (0 === iErrorCode)
|
if (0 === iErrorCode)
|
||||||
{
|
{
|
||||||
self.submitRequest(true);
|
self.submitRequest(true);
|
||||||
|
|
||||||
|
var RL = require('../Boots/RainLoopApp.js');
|
||||||
RL.loginAndLogoutReload();
|
RL.loginAndLogoutReload();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
window = require('../External/window.js'),
|
window = require('../External/window.js'),
|
||||||
$ = require('../External/jquery.js'),
|
$ = require('../External/jquery.js'),
|
||||||
|
|
@ -20,8 +19,6 @@
|
||||||
Cache = require('../Storages/WebMailCacheStorage.js'),
|
Cache = require('../Storages/WebMailCacheStorage.js'),
|
||||||
Data = require('../Storages/WebMailDataStorage.js'),
|
Data = require('../Storages/WebMailDataStorage.js'),
|
||||||
|
|
||||||
RL = require('../Boots/RainLoopApp.js'),
|
|
||||||
|
|
||||||
PopupsComposeViewModel = require('./Popups/PopupsComposeViewModel.js'),
|
PopupsComposeViewModel = require('./Popups/PopupsComposeViewModel.js'),
|
||||||
PopupsFolderCreateViewModel = require('./Popups/PopupsFolderCreateViewModel.js'),
|
PopupsFolderCreateViewModel = require('./Popups/PopupsFolderCreateViewModel.js'),
|
||||||
PopupsContactsViewModel = require('./Popups/PopupsContactsViewModel.js'),
|
PopupsContactsViewModel = require('./Popups/PopupsContactsViewModel.js'),
|
||||||
|
|
@ -62,7 +59,10 @@
|
||||||
this.oContentVisible = $('.b-content', oDom);
|
this.oContentVisible = $('.b-content', oDom);
|
||||||
this.oContentScrollable = $('.content', this.oContentVisible);
|
this.oContentScrollable = $('.content', this.oContentVisible);
|
||||||
|
|
||||||
var self = this;
|
var
|
||||||
|
self = this,
|
||||||
|
RL = require('../Boots/RainLoopApp.js')
|
||||||
|
;
|
||||||
|
|
||||||
oDom
|
oDom
|
||||||
.on('click', '.b-folders .e-item .e-link .e-collapsed-sign', function (oEvent) {
|
.on('click', '.b-folders .e-item .e-link .e-collapsed-sign', function (oEvent) {
|
||||||
|
|
@ -185,6 +185,7 @@
|
||||||
window.clearTimeout(this.iDropOverTimer);
|
window.clearTimeout(this.iDropOverTimer);
|
||||||
if (oFolder && oFolder.collapsed())
|
if (oFolder && oFolder.collapsed())
|
||||||
{
|
{
|
||||||
|
var RL = require('../Boots/RainLoopApp.js');
|
||||||
this.iDropOverTimer = window.setTimeout(function () {
|
this.iDropOverTimer = window.setTimeout(function () {
|
||||||
oFolder.collapsed(false);
|
oFolder.collapsed(false);
|
||||||
RL.setExpandedFolder(oFolder.fullNameHash, true);
|
RL.setExpandedFolder(oFolder.fullNameHash, true);
|
||||||
|
|
@ -240,6 +241,7 @@
|
||||||
if (oToFolder && oUi && oUi.helper)
|
if (oToFolder && oUi && oUi.helper)
|
||||||
{
|
{
|
||||||
var
|
var
|
||||||
|
RL = require('../Boots/RainLoopApp.js'),
|
||||||
sFromFolderFullNameRaw = oUi.helper.data('rl-folder'),
|
sFromFolderFullNameRaw = oUi.helper.data('rl-folder'),
|
||||||
bCopy = $html.hasClass('rl-ctrl-key-pressed'),
|
bCopy = $html.hasClass('rl-ctrl-key-pressed'),
|
||||||
aUids = oUi.helper.data('rl-uids')
|
aUids = oUi.helper.data('rl-uids')
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
$ = require('../External/jquery.js'),
|
$ = require('../External/jquery.js'),
|
||||||
_ = require('../External/underscore.js'),
|
_ = require('../External/underscore.js'),
|
||||||
|
|
@ -12,10 +11,10 @@
|
||||||
ifvisible = require('../External/ifvisible.js'),
|
ifvisible = require('../External/ifvisible.js'),
|
||||||
Jua = require('../External/Jua.js'),
|
Jua = require('../External/Jua.js'),
|
||||||
|
|
||||||
Utils = require('../Common/Utils.js'),
|
|
||||||
Enums = require('../Common/Enums.js'),
|
Enums = require('../Common/Enums.js'),
|
||||||
Consts = require('../Common/Consts.js'),
|
Consts = require('../Common/Consts.js'),
|
||||||
Globals = require('../Common/Globals.js'),
|
Globals = require('../Common/Globals.js'),
|
||||||
|
Utils = require('../Common/Utils.js'),
|
||||||
LinkBuilder = require('../Common/LinkBuilder.js'),
|
LinkBuilder = require('../Common/LinkBuilder.js'),
|
||||||
Events = require('../Common/Events.js'),
|
Events = require('../Common/Events.js'),
|
||||||
Selector = require('../Common/Selector.js'),
|
Selector = require('../Common/Selector.js'),
|
||||||
|
|
@ -25,12 +24,12 @@
|
||||||
Data = require('../Storages/WebMailDataStorage.js'),
|
Data = require('../Storages/WebMailDataStorage.js'),
|
||||||
Remote = require('../Storages/WebMailAjaxRemoteStorage.js'),
|
Remote = require('../Storages/WebMailAjaxRemoteStorage.js'),
|
||||||
|
|
||||||
RL = require('../Boots/RainLoopApp.js'),
|
|
||||||
|
|
||||||
kn = require('../Knoin/Knoin.js'),
|
kn = require('../Knoin/Knoin.js'),
|
||||||
KnoinAbstractViewModel = require('../Knoin/KnoinAbstractViewModel.js'),
|
KnoinAbstractViewModel = require('../Knoin/KnoinAbstractViewModel.js'),
|
||||||
|
|
||||||
PopupsComposeViewModel = require('./Popups/PopupsComposeViewModel.js')
|
PopupsComposeViewModel = require('./Popups/PopupsComposeViewModel.js'),
|
||||||
|
PopupsAdvancedSearchViewModel = require('./Popups/PopupsAdvancedSearchViewModel.js'),
|
||||||
|
PopupsFolderClearViewModel = require('./Popups/PopupsFolderClearViewModel.js')
|
||||||
;
|
;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -39,6 +38,8 @@
|
||||||
*/
|
*/
|
||||||
function MailBoxMessageListViewModel()
|
function MailBoxMessageListViewModel()
|
||||||
{
|
{
|
||||||
|
var RL = require('../Boots/RainLoopApp.js');
|
||||||
|
|
||||||
KnoinAbstractViewModel.call(this, 'Right', 'MailMessageList');
|
KnoinAbstractViewModel.call(this, 'Right', 'MailMessageList');
|
||||||
|
|
||||||
this.sLastUid = null;
|
this.sLastUid = null;
|
||||||
|
|
@ -305,6 +306,7 @@
|
||||||
{
|
{
|
||||||
if (this.canBeMoved())
|
if (this.canBeMoved())
|
||||||
{
|
{
|
||||||
|
var RL = require('../Boots/RainLoopApp.js');
|
||||||
RL.moveMessagesToFolder(
|
RL.moveMessagesToFolder(
|
||||||
Data.currentFolderFullNameRaw(),
|
Data.currentFolderFullNameRaw(),
|
||||||
Data.messageListCheckedOrSelectedUidsWithSubMails(), sToFolderFullNameRaw, bCopy);
|
Data.messageListCheckedOrSelectedUidsWithSubMails(), sToFolderFullNameRaw, bCopy);
|
||||||
|
|
@ -392,7 +394,8 @@
|
||||||
var
|
var
|
||||||
aUids = [],
|
aUids = [],
|
||||||
oFolder = null,
|
oFolder = null,
|
||||||
iAlreadyUnread = 0
|
iAlreadyUnread = 0,
|
||||||
|
RL = require('../Boots/RainLoopApp.js')
|
||||||
;
|
;
|
||||||
|
|
||||||
if (Utils.isUnd(aMessages))
|
if (Utils.isUnd(aMessages))
|
||||||
|
|
@ -472,7 +475,8 @@
|
||||||
{
|
{
|
||||||
var
|
var
|
||||||
oFolder = null,
|
oFolder = null,
|
||||||
aMessages = Data.messageList()
|
aMessages = Data.messageList(),
|
||||||
|
RL = require('../Boots/RainLoopApp.js')
|
||||||
;
|
;
|
||||||
|
|
||||||
if ('' !== sFolderFullNameRaw)
|
if ('' !== sFolderFullNameRaw)
|
||||||
|
|
@ -625,7 +629,8 @@
|
||||||
MailBoxMessageListViewModel.prototype.onBuild = function (oDom)
|
MailBoxMessageListViewModel.prototype.onBuild = function (oDom)
|
||||||
{
|
{
|
||||||
var
|
var
|
||||||
self = this
|
self = this,
|
||||||
|
RL = require('../Boots/RainLoopApp.js')
|
||||||
;
|
;
|
||||||
|
|
||||||
this.oContentVisible = $('.b-content', oDom);
|
this.oContentVisible = $('.b-content', oDom);
|
||||||
|
|
@ -656,6 +661,7 @@
|
||||||
|
|
||||||
oMessage.lastInCollapsedThreadLoading(true);
|
oMessage.lastInCollapsedThreadLoading(true);
|
||||||
oMessage.lastInCollapsedThread(!oMessage.lastInCollapsedThread());
|
oMessage.lastInCollapsedThread(!oMessage.lastInCollapsedThread());
|
||||||
|
|
||||||
RL.reloadMessageList();
|
RL.reloadMessageList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -886,7 +892,9 @@
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
var oJua = new Jua({
|
var
|
||||||
|
RL = require('../Boots/RainLoopApp.js'),
|
||||||
|
oJua = new Jua({
|
||||||
'action': LinkBuilder.append(),
|
'action': LinkBuilder.append(),
|
||||||
'name': 'AppendFile',
|
'name': 'AppendFile',
|
||||||
'queueSize': 1,
|
'queueSize': 1,
|
||||||
|
|
@ -899,7 +907,8 @@
|
||||||
},
|
},
|
||||||
'dragAndDropElement': this.dragOverArea(),
|
'dragAndDropElement': this.dragOverArea(),
|
||||||
'dragAndDropBodyElement': this.dragOverBodyArea()
|
'dragAndDropBodyElement': this.dragOverBodyArea()
|
||||||
});
|
})
|
||||||
|
;
|
||||||
|
|
||||||
oJua
|
oJua
|
||||||
.on('onDragEnter', _.bind(function () {
|
.on('onDragEnter', _.bind(function () {
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
$ = require('../External/jquery.js'),
|
$ = require('../External/jquery.js'),
|
||||||
ko = require('../External/ko.js'),
|
ko = require('../External/ko.js'),
|
||||||
|
|
@ -20,7 +19,7 @@
|
||||||
Data = require('../Storages/WebMailDataStorage.js'),
|
Data = require('../Storages/WebMailDataStorage.js'),
|
||||||
Remote = require('../Storages/WebMailAjaxRemoteStorage.js'),
|
Remote = require('../Storages/WebMailAjaxRemoteStorage.js'),
|
||||||
|
|
||||||
RL = require('../Boots/RainLoopApp.js'),
|
PopupsComposeViewModel = require('./Popups/PopupsComposeViewModel.js'),
|
||||||
|
|
||||||
kn = require('../Knoin/Knoin.js'),
|
kn = require('../Knoin/Knoin.js'),
|
||||||
KnoinAbstractViewModel = require('../Knoin/KnoinAbstractViewModel.js')
|
KnoinAbstractViewModel = require('../Knoin/KnoinAbstractViewModel.js')
|
||||||
|
|
@ -37,6 +36,7 @@
|
||||||
var
|
var
|
||||||
self = this,
|
self = this,
|
||||||
sLastEmail = '',
|
sLastEmail = '',
|
||||||
|
RL = require('../Boots/RainLoopApp.js'),
|
||||||
createCommandHelper = function (sType) {
|
createCommandHelper = function (sType) {
|
||||||
return Utils.createCommand(self, function () {
|
return Utils.createCommand(self, function () {
|
||||||
this.replyOrforward(sType);
|
this.replyOrforward(sType);
|
||||||
|
|
@ -341,7 +341,8 @@
|
||||||
MailBoxMessageViewViewModel.prototype.onBuild = function (oDom)
|
MailBoxMessageViewViewModel.prototype.onBuild = function (oDom)
|
||||||
{
|
{
|
||||||
var
|
var
|
||||||
self = this
|
self = this,
|
||||||
|
RL = require('../Boots/RainLoopApp.js')
|
||||||
;
|
;
|
||||||
|
|
||||||
this.fullScreenMode.subscribe(function (bValue) {
|
this.fullScreenMode.subscribe(function (bValue) {
|
||||||
|
|
@ -710,6 +711,8 @@
|
||||||
oMessage.isReadReceipt(true);
|
oMessage.isReadReceipt(true);
|
||||||
|
|
||||||
Cache.storeMessageFlagsToCache(oMessage);
|
Cache.storeMessageFlagsToCache(oMessage);
|
||||||
|
|
||||||
|
var RL = require('../Boots/RainLoopApp.js');
|
||||||
RL.reloadFlagsCurrentMessageListAndMessageFromCache();
|
RL.reloadFlagsCurrentMessageListAndMessageFromCache();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,9 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
Utils = require('../Common/Utils.js'),
|
|
||||||
kn = require('../Knoin/Knoin.js'),
|
kn = require('../Knoin/Knoin.js'),
|
||||||
AbstractSystemDropDownViewModel = require('./AbstractSystemDropDownViewModel.js')
|
AbstractSystemDropDownViewModel = require('./AbstractSystemDropDownViewModel.js')
|
||||||
;
|
;
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function (module) {
|
(function (module) {
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
ko = require('../../External/ko.js'),
|
ko = require('../../External/ko.js'),
|
||||||
|
|
||||||
Enums = require('../../Common/Enums.js'),
|
Enums = require('../../Common/Enums.js'),
|
||||||
Utils = require('../../Common/Utils.js'),
|
Utils = require('../../Common/Utils.js'),
|
||||||
|
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue