mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-11-16 04:34:42 +08:00
44 lines
No EOL
881 B
JavaScript
44 lines
No EOL
881 B
JavaScript
|
|
(function () {
|
|
|
|
'use strict';
|
|
|
|
var
|
|
_ = require('_'),
|
|
|
|
Links = require('Common/Links'),
|
|
|
|
Data = require('Storage/User/Data'),
|
|
Cache = require('Storage/User/Cache'),
|
|
|
|
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 ()
|
|
{
|
|
Data.message(null);
|
|
};
|
|
|
|
PaneSettingsUserView.prototype.backToMailBoxClick = function ()
|
|
{
|
|
kn.setHash(Links.inbox(Cache.getFolderInboxName()));
|
|
};
|
|
|
|
module.exports = PaneSettingsUserView;
|
|
|
|
}()); |