From 3b08617610056ac0674304fa61e43405db73ae97 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 12 Aug 2007 14:44:41 +0100 Subject: [PATCH] enable collapsing of virtual category --- feedlist.js | 8 ++++++++ functions.php | 20 ++++++++++++++++++-- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/feedlist.js b/feedlist.js index af792ccff..04fab589f 100644 --- a/feedlist.js +++ b/feedlist.js @@ -246,6 +246,14 @@ function toggleCollapseCat(cat) { } } + if (cat == -1) { + if (Element.visible("FCATLIST-" + cat)) { + setCookie("ttrss_vf_vclps", "1"); + } else { + setCookie("ttrss_vf_vclps", "0"); + } + } + Effect.toggle('FCATLIST-' + cat, 'blind', { duration: 0.5, afterFinish: toggleCollapseCat_af }); diff --git a/functions.php b/functions.php index 115bb3475..04594f9da 100644 --- a/functions.php +++ b/functions.php @@ -3249,8 +3249,24 @@ /* virtual feeds */ if (get_pref($link, 'ENABLE_FEED_CATS')) { - print "
  • ".__('Special')."
  • "; - print "