From: Andrew Dolgov Date: Thu, 10 Nov 2011 12:18:08 +0000 (+0400) Subject: prefs: enable selecting all feeds in a category X-Git-Tag: 1.5.7~35 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=7c227bb37275cd02eba6be89baba19d18491cfe4;p=tt-rss.git prefs: enable selecting all feeds in a category --- diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php index 449f3c92..7da4598c 100644 --- a/modules/pref-feeds.php +++ b/modules/pref-feeds.php @@ -57,6 +57,7 @@ $cat['bare_id'] = $feed_id; $cat['name'] = $line['title']; $cat['items'] = array(); + $cat['checkbox'] = false; $cat['type'] = 'category'; $feed_result = db_query($link, "SELECT id, title, last_error, diff --git a/prefs.js b/prefs.js index 8a2a018e..77031242 100644 --- a/prefs.js +++ b/prefs.js @@ -288,7 +288,8 @@ function getSelectedFeeds() { var rv = []; items.each(function(item) { - rv.push(tree.model.store.getValue(item, 'bare_id')); + if (item.id[0].match("FEED:")) + rv.push(tree.model.store.getValue(item, 'bare_id')); }); return rv;