summaryrefslogtreecommitdiff
path: root/tt-rss.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-15 22:31:41 +0300
committerAndrew Dolgov <[email protected]>2010-11-15 22:31:41 +0300
commit0ce6115754fb20ea0a380b1d49235d23ba7c6d05 (patch)
tree8f1ba812d766704a58f733bd70d806e36529cb96 /tt-rss.js
parentfcf70c510686a0b289f8f5e8713f959d95ae743b (diff)
enable feedlist collapsing
Diffstat (limited to 'tt-rss.js')
-rw-r--r--tt-rss.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/tt-rss.js b/tt-rss.js
index d5905346d..cfd992b6d 100644
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -648,7 +648,16 @@ function feedEditSave() {
function collapse_feedlist() {
try {
- console.warn("collapse_feedlist: function not implemented");
+
+ if (!Element.visible('feeds-holder')) {
+ Element.show('feeds-holder');
+ $("collapse_feeds_btn").innerHTML = "&lt;&lt;";
+ } else {
+ Element.hide('feeds-holder');
+ $("collapse_feeds_btn").innerHTML = "&gt;&gt;";
+ }
+
+ dijit.byId("main").resize();
query = "?op=rpc&subop=setpref&key=_COLLAPSED_FEEDLIST&value=true";
new Ajax.Request("backend.php", { parameters: query });