]> git.wh0rd.org Git - tt-rss.git/commitdiff
prefs: enable selecting all feeds in a category
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 10 Nov 2011 12:18:08 +0000 (16:18 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 10 Nov 2011 12:18:08 +0000 (16:18 +0400)
modules/pref-feeds.php
prefs.js

index 449f3c92a2e8d25322668fe930a93a421e0689d2..7da4598c1499cb771d1491b2bc08661be761a78b 100644 (file)
@@ -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,
index 8a2a018e14e8e5bc2d186000c12ef4f89dd73a76..7703124279d1b8b6c726fde59d2a3541f355a1d7 100644 (file)
--- 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;