]> git.wh0rd.org Git - tt-rss.git/commitdiff
offline: properly collapse Special category
authorAndrew Dolgov <fox@bah.org.ru>
Fri, 6 Feb 2009 06:25:52 +0000 (09:25 +0300)
committerAndrew Dolgov <fox@bah.org.ru>
Fri, 6 Feb 2009 06:25:52 +0000 (09:25 +0300)
offline.js

index 62c844cf92f2a38138af733f692b016458eef241..3bcf695db422057a04363a61daea8afd3984822f 100644 (file)
@@ -422,7 +422,16 @@ function render_offline_feedlist() {
                updateTitle();
 
                if (cats_enabled) {
-                       tmp += printCategoryHeader(-1, getCookie("ttrss_vf_vclps"), false);
+                       var rs = db.execute("SELECT collapsed FROM categories WHERE id = -1");
+                       var cat_hidden = 0;
+
+                       if (rs.isValidRow()) {
+                               cat_hidden = rs.field(0);
+                       }
+
+                       rs.close();
+
+                       tmp += printCategoryHeader(-1, cat_hidden, false);
                }
 
                tmp += printFeedEntry(-4, __("All articles"), "feed", unread,