mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-08 22:18:28 +03:00
CommonJS (research)
This commit is contained in:
parent
2fa2cd191e
commit
56607de87c
91 changed files with 20220 additions and 12933 deletions
|
|
@ -1,30 +1,44 @@
|
|||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||
|
||||
/**
|
||||
* @param {?} oScreen
|
||||
*
|
||||
* @constructor
|
||||
* @extends KnoinAbstractViewModel
|
||||
*/
|
||||
function SettingsMenuViewModel(oScreen)
|
||||
{
|
||||
KnoinAbstractViewModel.call(this, 'Left', 'SettingsMenu');
|
||||
(function (module) {
|
||||
|
||||
this.leftPanelDisabled = RL.data().leftPanelDisabled;
|
||||
'use strict';
|
||||
|
||||
this.menu = oScreen.menu;
|
||||
var
|
||||
Utils = require('../Common/Utils.js'),
|
||||
kn = require('../Knoin/Knoin.js'),
|
||||
KnoinAbstractViewModel = require('../Knoin/KnoinAbstractViewModel.js')
|
||||
;
|
||||
|
||||
Knoin.constructorEnd(this);
|
||||
}
|
||||
/**
|
||||
* @param {?} oScreen
|
||||
*
|
||||
* @constructor
|
||||
* @extends KnoinAbstractViewModel
|
||||
*/
|
||||
function SettingsMenuViewModel(oScreen)
|
||||
{
|
||||
KnoinAbstractViewModel.call(this, 'Left', 'SettingsMenu');
|
||||
|
||||
Utils.extendAsViewModel('SettingsMenuViewModel', SettingsMenuViewModel);
|
||||
this.leftPanelDisabled = RL.data().leftPanelDisabled; // TODO cjs
|
||||
|
||||
SettingsMenuViewModel.prototype.link = function (sRoute)
|
||||
{
|
||||
return RL.link().settings(sRoute);
|
||||
};
|
||||
this.menu = oScreen.menu;
|
||||
|
||||
SettingsMenuViewModel.prototype.backToMailBoxClick = function ()
|
||||
{
|
||||
kn.setHash(RL.link().inbox());
|
||||
};
|
||||
kn.constructorEnd(this);
|
||||
}
|
||||
|
||||
Utils.extendAsViewModel('SettingsMenuViewModel', SettingsMenuViewModel);
|
||||
|
||||
SettingsMenuViewModel.prototype.link = function (sRoute)
|
||||
{
|
||||
return RL.link().settings(sRoute);// TODO cjs
|
||||
};
|
||||
|
||||
SettingsMenuViewModel.prototype.backToMailBoxClick = function ()
|
||||
{
|
||||
kn.setHash(RL.link().inbox()); // TODO cjs
|
||||
};
|
||||
|
||||
module.exports = SettingsMenuViewModel;
|
||||
|
||||
}(module));
|
||||
Loading…
Add table
Add a link
Reference in a new issue