snappymail/dev/View/User/Settings/Pane.js

44 lines
881 B
JavaScript
Raw Normal View History

(function () {
'use strict';
var
_ = require('_'),
2014-10-06 02:37:31 +08:00
Links = require('Common/Links'),
2014-10-18 21:43:44 +08:00
Data = require('Storage/User/Data'),
Cache = require('Storage/User/Cache'),
kn = require('Knoin/Knoin'),
AbstractView = require('Knoin/AbstractView')
;
/**
* @constructor
* @extends AbstractView
*/
2014-10-18 21:43:44 +08:00
function PaneSettingsUserView()
{
AbstractView.call(this, 'Right', 'SettingsPane');
kn.constructorEnd(this);
}
2014-10-18 21:43:44 +08:00
kn.extendAsViewModel(['View/User/Settings/Pane', 'View/App/Settings/Pane', 'SettingsPaneViewModel'], PaneSettingsUserView);
_.extend(PaneSettingsUserView.prototype, AbstractView.prototype);
2014-10-18 21:43:44 +08:00
PaneSettingsUserView.prototype.onShow = function ()
{
Data.message(null);
};
2014-10-18 21:43:44 +08:00
PaneSettingsUserView.prototype.backToMailBoxClick = function ()
{
kn.setHash(Links.inbox(Cache.getFolderInboxName()));
};
2014-10-18 21:43:44 +08:00
module.exports = PaneSettingsUserView;
}());