snappymail/dev/View/User/Settings/Pane.js
2015-02-22 02:00:51 +04:00

40 lines
No EOL
836 B
JavaScript

(function () {
'use strict';
var
_ = require('_'),
kn = require('Knoin/Knoin'),
AbstractView = require('Knoin/AbstractView')
;
/**
* @constructor
* @extends AbstractView
*/
function PaneSettingsUserView()
{
AbstractView.call(this, 'Right', 'SettingsPane');
kn.constructorEnd(this);
}
kn.extendAsViewModel(['View/User/Settings/Pane', 'View/App/Settings/Pane', 'SettingsPaneViewModel'], PaneSettingsUserView);
_.extend(PaneSettingsUserView.prototype, AbstractView.prototype);
PaneSettingsUserView.prototype.onShow = function ()
{
require('Stores/User/Message').message(null);
};
PaneSettingsUserView.prototype.backToMailBoxClick = function ()
{
kn.setHash(require('Common/Links').inbox(
require('Storage/User/Cache').getFolderInboxName()));
};
module.exports = PaneSettingsUserView;
}());