snappymail/dev/Screens/SettingsScreen.js
2014-08-27 19:59:44 +04:00

51 lines
No EOL
1.1 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('Screen:AbstractSettings')
;
/**
* @constructor
* @extends AbstractSettings
*/
function SettingsScreen()
{
AbstractSettings.call(this, [
require('View:RainLoop:SettingsSystemDropDown'),
require('View:RainLoop:SettingsMenu'),
require('View:RainLoop:SettingsPane')
]);
Utils.initOnStartOrLangChange(function () {
this.sSettingsTitle = Utils.i18n('TITLES/SETTINGS');
}, this, function () {
this.setSettingsTitle();
});
}
_.extend(SettingsScreen.prototype, AbstractSettings.prototype);
SettingsScreen.prototype.onShow = function ()
{
this.setSettingsTitle();
Globals.keyScope(Enums.KeyState.Settings);
};
SettingsScreen.prototype.setSettingsTitle = function ()
{
require('App:RainLoop').setTitle(this.sSettingsTitle);
};
module.exports = SettingsScreen;
}(module, require));