2013-11-16 06:21:12 +08:00
|
|
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @constructor
|
|
|
|
* @extends KnoinAbstractViewModel
|
|
|
|
*/
|
|
|
|
function SettingsPaneViewModel()
|
|
|
|
{
|
|
|
|
KnoinAbstractViewModel.call(this, 'Right', 'SettingsPane');
|
2013-12-09 23:16:58 +08:00
|
|
|
|
|
|
|
Knoin.constructorEnd(this);
|
2013-11-16 06:21:12 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
Utils.extendAsViewModel('SettingsPaneViewModel', SettingsPaneViewModel);
|
|
|
|
|
2014-04-12 09:05:57 +08:00
|
|
|
SettingsPaneViewModel.prototype.onBuild = function ()
|
|
|
|
{
|
|
|
|
var self = this;
|
|
|
|
key('esc', Enums.KeyState.Settings, function () {
|
2014-04-13 08:32:07 +08:00
|
|
|
self.backToMailBoxClick();
|
2014-04-12 09:05:57 +08:00
|
|
|
});
|
|
|
|
};
|
|
|
|
|
2013-11-16 06:21:12 +08:00
|
|
|
SettingsPaneViewModel.prototype.onShow = function ()
|
|
|
|
{
|
|
|
|
RL.data().message(null);
|
|
|
|
};
|
|
|
|
|
|
|
|
SettingsPaneViewModel.prototype.backToMailBoxClick = function ()
|
|
|
|
{
|
|
|
|
kn.setHash(RL.link().inbox());
|
|
|
|
};
|