mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-11-11 01:23:43 +08:00
36 lines
749 B
JavaScript
36 lines
749 B
JavaScript
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
|
|
|
/**
|
|
* @constructor
|
|
*/
|
|
function SettingsFilters()
|
|
{
|
|
// var oData = RL.data();
|
|
|
|
this.filters = ko.observableArray([]);
|
|
this.filters.loading = ko.observable(false);
|
|
|
|
this.filters.subscribe(function () {
|
|
Utils.windowResize();
|
|
});
|
|
}
|
|
|
|
Utils.addSettingsViewModel(SettingsFilters, 'SettingsFilters', 'SETTINGS_LABELS/LABEL_FILTERS_NAME', 'filters');
|
|
|
|
//SettingsFilters.prototype.onBuild = function ()
|
|
//{
|
|
//};
|
|
|
|
SettingsFilters.prototype.deleteFilter = function (oFilter)
|
|
{
|
|
this.filters.remove(oFilter);
|
|
};
|
|
|
|
SettingsFilters.prototype.addFilter = function ()
|
|
{
|
|
var oFilter = new FilterModel();
|
|
oFilter.addCondition();
|
|
oFilter.addAction();
|
|
|
|
this.filters.push(oFilter);
|
|
};
|