mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 20:49:20 +03:00
Code refactoring
a lot of small fixes (Closes #173) Added login field (ownCloud package)
This commit is contained in:
parent
a059b3d063
commit
fed896776f
129 changed files with 1016 additions and 804 deletions
31
dev/Settings/Filters.js
Normal file
31
dev/Settings/Filters.js
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
/* 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);
|
||||
}
|
||||
|
||||
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();
|
||||
|
||||
this.filters.push(oFilter);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue