X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=prefs.js;h=5dc9e77029b48595eac986b869a36ca10ce896c8;hb=a740f4b51d4810ea10022915051284a812232c18;hp=0e77118db5dc35c5e4b6d67c83b79968228d8a9f;hpb=82aea97816774e3410eb4137b80dd0497547eb96;p=tt-rss.git diff --git a/prefs.js b/prefs.js index 0e77118d..5dc9e770 100644 --- a/prefs.js +++ b/prefs.js @@ -356,10 +356,7 @@ function editFilter(id, event) { if (!event || !event.ctrlKey) { - notify_progress("Loading, please wait..."); - - selectTableRows('prefFilterList', 'none'); - selectTableRowById('FILRR-'+id, 'FICHK-'+id, true); + notify_progress("Loading, please wait...", true); var query = "?op=pref-filters&subop=edit&id=" + param_escape(id); @@ -435,7 +432,16 @@ function getSelectedFeeds() { } function getSelectedFilters() { - return getSelectedTableRowIds("prefFilterList"); + var tree = dijit.byId("filterTree"); + var items = tree.model.getCheckedItems(); + var rv = []; + + items.each(function(item) { + rv.push(tree.model.store.getValue(item, 'bare_id')); + }); + + return rv; + } function getSelectedFeedCats() { @@ -1172,6 +1178,7 @@ function init() { dojo.require("lib.CheckBoxTree"); dojo.require("fox.PrefFeedTree"); + dojo.require("fox.PrefFilterTree"); loading_set_progress(30);