From: Andrew Dolgov Date: Fri, 6 Feb 2009 06:25:52 +0000 (+0300) Subject: offline: properly collapse Special category X-Git-Tag: 1.3.1~73 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=ab95d6a545f735bc2ba01761bb00394527e2db83;p=tt-rss.git offline: properly collapse Special category --- diff --git a/offline.js b/offline.js index 62c844cf..3bcf695d 100644 --- a/offline.js +++ b/offline.js @@ -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,