]> git.wh0rd.org - tt-rss.git/commitdiff
enable feedlist collapsing
authorAndrew Dolgov <fox@fakecake.org>
Mon, 15 Nov 2010 19:31:41 +0000 (22:31 +0300)
committerAndrew Dolgov <fox@fakecake.org>
Mon, 15 Nov 2010 19:31:41 +0000 (22:31 +0300)
tt-rss.css
tt-rss.js
tt-rss.php

index 9c5dd79af1e3014c217d1292fc99650161132b02..017ce6f624501cec05e8182c7023844f68d38764 100644 (file)
@@ -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 {
index d5905346d4098cb7565f38a7f34eab8beee92803..cfd992b6da2edb1b3ab6538092a01f8a65183d46 100644 (file)
--- 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 });
index 3b61d5213725509565f8c8614fea0b994d43be55..8e4770fbd3f8d0569089d3c201b347f24e95bbfb 100644 (file)
                <form id="main_toolbar_form" action="" onsubmit='return false'>
 
                <button id="collapse_feeds_btn" onclick="collapse_feedlist()"
-                       title="<?php echo __('Collapse feedlist') ?>" style="display : none">
+                       title="<?php echo __('Collapse feedlist') ?>" style="display : inline">
                        &lt;&lt;</button>
 
                <select name="view_mode" title="<?php echo __('Show articles') ?>"