1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-14 03:15:54 +00:00

tweak feed-prefs; rework filter prefs to use dijit.Tree

This commit is contained in:
Andrew Dolgov
2010-11-18 15:49:26 +03:00
parent 82aea97816
commit a740f4b51d
5 changed files with 212 additions and 206 deletions

View File

@@ -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);