mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-11-11 01:23:43 +08:00
1027f319ed
Code refactoring Small fixes
32 lines
703 B
JavaScript
32 lines
703 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 ()
|
|
{
|
|
kn.showScreenPopup(PopupsFilterViewModel, [new FilterModel()]);
|
|
};
|