From bd64489f652a769429fb67e137abcaa9d3b2b5de Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 11 Aug 2007 18:44:20 +0100 Subject: [PATCH] enable collapsing of labels --- feedlist.js | 8 ++++++++ functions.php | 16 ++++++++++++++-- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/feedlist.js b/feedlist.js index 344b28acf..af792ccff 100644 --- a/feedlist.js +++ b/feedlist.js @@ -238,6 +238,14 @@ function toggleCollapseCat(cat) { } } + if (cat == -2) { + if (Element.visible("FCATLIST-" + cat)) { + setCookie("ttrss_vf_lclps", "1"); + } else { + setCookie("ttrss_vf_lclps", "0"); + } + } + Effect.toggle('FCATLIST-' + cat, 'blind', { duration: 0.5, afterFinish: toggleCollapseCat_af }); diff --git a/functions.php b/functions.php index 37ea3d5bf..115bb3475 100644 --- a/functions.php +++ b/functions.php @@ -3283,8 +3283,20 @@ if (db_num_rows($result) > 0) { if (get_pref($link, 'ENABLE_FEED_CATS')) { - print "
  • ".__('Labels')."
  • "; - print "