Permalink
Browse files

prefs: enable selecting all feeds in a category

  • Loading branch information...
1 parent bd4dfca commit 7c227bb37275cd02eba6be89baba19d18491cfe4 Andrew Dolgov committed Nov 10, 2011
Showing with 3 additions and 1 deletion.
  1. +1 −0 modules/pref-feeds.php
  2. +2 −1 prefs.js
@@ -57,6 +57,7 @@ function module_pref_feeds($link) {
$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,
View
@@ -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;

0 comments on commit 7c227bb

Please sign in to comment.