mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-02-23 06:18:03 +08:00
57 lines
No EOL
1.2 KiB
JavaScript
57 lines
No EOL
1.2 KiB
JavaScript
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
|
|
|
(function (module) {
|
|
|
|
'use strict';
|
|
|
|
var
|
|
ko = require('../../External/ko.js'),
|
|
|
|
Consts = require('../../Common/Consts.js'),
|
|
Utils = require('../../Common/Utils.js'),
|
|
|
|
Data = require('../../Storages/WebMailDataStorage.js'),
|
|
|
|
kn = require('../../Knoin/Knoin.js'),
|
|
KnoinAbstractViewModel = require('../../Knoin/KnoinAbstractViewModel.js')
|
|
;
|
|
|
|
/**
|
|
* @constructor
|
|
* @extends KnoinAbstractViewModel
|
|
*/
|
|
function PopupsFilterViewModel()
|
|
{
|
|
KnoinAbstractViewModel.call(this, 'Popups', 'PopupsFilter');
|
|
|
|
this.filter = ko.observable(null);
|
|
|
|
this.selectedFolderValue = ko.observable(Consts.Values.UnuseOptionValue);
|
|
this.folderSelectList = Data.folderMenuForMove;
|
|
this.defautOptionsAfterRender = Utils.defautOptionsAfterRender;
|
|
|
|
kn.constructorEnd(this);
|
|
}
|
|
|
|
kn.extendAsViewModel('PopupsFilterViewModel', PopupsFilterViewModel);
|
|
|
|
PopupsFilterViewModel.prototype.clearPopup = function ()
|
|
{
|
|
// TODO
|
|
};
|
|
|
|
PopupsFilterViewModel.prototype.onShow = function (oFilter)
|
|
{
|
|
this.clearPopup();
|
|
|
|
this.filter(oFilter);
|
|
};
|
|
|
|
// PopupsFilterViewModel.prototype.onFocus = function ()
|
|
// {
|
|
//
|
|
// };
|
|
|
|
module.exports = new PopupsFilterViewModel();
|
|
|
|
}(module)); |