diff options
author | Andrew Dolgov <[email protected]> | 2009-02-06 09:25:52 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2009-02-06 09:25:52 +0300 |
commit | ab95d6a545f735bc2ba01761bb00394527e2db83 (patch) | |
tree | bd4716a51be603e8ba6e4d0bd3c5e03ad34ae8fe /offline.js | |
parent | 983a6a9c96d0d7979ad7df88ec553363b5382be3 (diff) |
offline: properly collapse Special category
Diffstat (limited to 'offline.js')
-rw-r--r-- | offline.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/offline.js b/offline.js index 62c844cf9..3bcf695db 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, |