From 7c227bb37275cd02eba6be89baba19d18491cfe4 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 10 Nov 2011 16:18:08 +0400 Subject: [PATCH] prefs: enable selecting all feeds in a category --- modules/pref-feeds.php | 1 + prefs.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php index 449f3c92a..7da4598c1 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 8a2a018e1..770312427 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;