snappymail/dev/Screens/SettingsScreen.js
2014-08-25 19:49:01 +04:00

56 lines
No EOL
1.3 KiB
JavaScript

/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
(function (module, require) {
'use strict';
var
_ = require('_'),
Enums = require('Enums'),
Utils = require('Utils'),
Globals = require('Globals'),
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, require));