2013-11-16 06:21:12 +08:00
|
|
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
|
|
|
|
2014-08-25 23:49:01 +08:00
|
|
|
(function (module, require) {
|
|
|
|
|
|
|
|
'use strict';
|
2014-08-20 23:03:12 +08:00
|
|
|
|
|
|
|
var
|
2014-08-25 23:49:01 +08:00
|
|
|
_ = require('_'),
|
2014-08-25 15:10:51 +08:00
|
|
|
|
2014-08-25 23:49:01 +08:00
|
|
|
Enums = require('Enums'),
|
|
|
|
Utils = require('Utils'),
|
|
|
|
Globals = require('Globals'),
|
2014-08-22 23:08:56 +08:00
|
|
|
|
2014-08-27 23:59:44 +08:00
|
|
|
AbstractSettings = require('Screen:AbstractSettings')
|
2014-08-20 23:03:12 +08:00
|
|
|
;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @constructor
|
|
|
|
* @extends AbstractSettings
|
|
|
|
*/
|
|
|
|
function SettingsScreen()
|
|
|
|
{
|
|
|
|
AbstractSettings.call(this, [
|
2014-08-27 23:59:44 +08:00
|
|
|
require('View:RainLoop:SettingsSystemDropDown'),
|
|
|
|
require('View:RainLoop:SettingsMenu'),
|
|
|
|
require('View:RainLoop:SettingsPane')
|
2014-08-20 23:03:12 +08:00
|
|
|
]);
|
|
|
|
|
|
|
|
Utils.initOnStartOrLangChange(function () {
|
|
|
|
this.sSettingsTitle = Utils.i18n('TITLES/SETTINGS');
|
|
|
|
}, this, function () {
|
2014-08-27 23:59:44 +08:00
|
|
|
this.setSettingsTitle();
|
2014-08-20 23:03:12 +08:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
_.extend(SettingsScreen.prototype, AbstractSettings.prototype);
|
|
|
|
|
|
|
|
SettingsScreen.prototype.onShow = function ()
|
|
|
|
{
|
2014-08-27 23:59:44 +08:00
|
|
|
this.setSettingsTitle();
|
2014-08-22 23:08:56 +08:00
|
|
|
Globals.keyScope(Enums.KeyState.Settings);
|
2014-08-20 23:03:12 +08:00
|
|
|
};
|
2014-08-27 23:59:44 +08:00
|
|
|
|
|
|
|
SettingsScreen.prototype.setSettingsTitle = function ()
|
|
|
|
{
|
|
|
|
require('App:RainLoop').setTitle(this.sSettingsTitle);
|
|
|
|
};
|
2014-08-20 23:03:12 +08:00
|
|
|
|
|
|
|
module.exports = SettingsScreen;
|
|
|
|
|
2014-08-25 23:49:01 +08:00
|
|
|
}(module, require));
|