From 0ce6115754fb20ea0a380b1d49235d23ba7c6d05 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 15 Nov 2010 22:31:41 +0300 Subject: enable feedlist collapsing --- tt-rss.css | 14 +++++++++++--- tt-rss.js | 11 ++++++++++- tt-rss.php | 2 +- 3 files changed, 22 insertions(+), 5 deletions(-) diff --git a/tt-rss.css b/tt-rss.css index 9c5dd79af..017ce6f62 100644 --- a/tt-rss.css +++ b/tt-rss.css @@ -555,15 +555,16 @@ td.selectPrompt { } div#headlines-toolbar { - border-width : 0px; - background-color : white; + border-width : 1px 0px 1px 1px; + background-color : #ecf4ff; + border-color : #88b0f0 #88b0f0 #ecf4ff #88b0f0; font-size : 11px; font-family : "Lucida Grande", "Segoe UI", Tahoma, Arial, sans-serif; color : gray; padding : 0px; margin : 0px; overflow : hidden; - height : 21px; + height : 23px; } div#headlines-toolbar .dijitSelect { @@ -575,6 +576,7 @@ div#headlines-toolbar div#subtoolbar_main { width : 100%; white-space : nowrap; vertical-align : middle; + padding-left : 5px; } div#headlines-toolbar div#subtoolbar_ftitle { @@ -1462,6 +1464,12 @@ div.fatalError textarea { padding : 0px; border-color : #88b0f0; border-right-width : 0px; + margin-top : 0px; + border-top-width : 0px; +} + +#headlines-toolbar_splitter { + display : none; } #headlinesInnerContainer { 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 = "<<"; + } else { + Element.hide('feeds-holder'); + $("collapse_feeds_btn").innerHTML = ">>"; + } + + dijit.byId("main").resize(); query = "?op=rpc&subop=setpref&key=_COLLAPSED_FEEDLIST&value=true"; new Ajax.Request("backend.php", { parameters: query }); diff --git a/tt-rss.php b/tt-rss.php index 3b61d5213..8e4770fbd 100644 --- a/tt-rss.php +++ b/tt-rss.php @@ -134,7 +134,7 @@