mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-10 08:48:03 +08:00
56 lines
No EOL
1.3 KiB
JavaScript
56 lines
No EOL
1.3 KiB
JavaScript
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
|
|
|
(function (module) {
|
|
|
|
'use strict';
|
|
|
|
var
|
|
_ = require('../External/underscore.js'),
|
|
|
|
Enums = require('../Common/Enums.js'),
|
|
Utils = require('../Common/Utils.js'),
|
|
Globals = require('../Common/Globals.js'),
|
|
|
|
AbstractSettings = require('./AbstractSettings.js')
|
|
;
|
|
|
|
/**
|
|
* @constructor
|
|
* @extends AbstractSettings
|
|
*/
|
|
function SettingsScreen()
|
|
{
|
|
var
|
|
RL = require('../Boots/RainLoopApp.js'),
|
|
|
|
SettingsSystemDropDownViewModel = require('../ViewModels/SettingsSystemDropDownViewModel.js'),
|
|
SettingsMenuViewModel = require('../ViewModels/SettingsMenuViewModel.js'),
|
|
SettingsPaneViewModel = require('../ViewModels/SettingsPaneViewModel.js')
|
|
;
|
|
|
|
AbstractSettings.call(this, [
|
|
SettingsSystemDropDownViewModel,
|
|
SettingsMenuViewModel,
|
|
SettingsPaneViewModel
|
|
]);
|
|
|
|
Utils.initOnStartOrLangChange(function () {
|
|
this.sSettingsTitle = Utils.i18n('TITLES/SETTINGS');
|
|
}, this, function () {
|
|
RL.setTitle(this.sSettingsTitle);
|
|
});
|
|
}
|
|
|
|
_.extend(SettingsScreen.prototype, AbstractSettings.prototype);
|
|
|
|
SettingsScreen.prototype.onShow = function ()
|
|
{
|
|
var RL = require('../Boots/RainLoopApp.js');
|
|
|
|
RL.setTitle(this.sSettingsTitle);
|
|
Globals.keyScope(Enums.KeyState.Settings);
|
|
};
|
|
|
|
module.exports = SettingsScreen;
|
|
|
|
}(module)); |