]> git.wh0rd.org Git - tt-rss.git/commitdiff
slide browse feed details
authorAndrew Dolgov <fox@bah.spb.su>
Sat, 11 Aug 2007 16:58:57 +0000 (17:58 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sat, 11 Aug 2007 16:58:57 +0000 (17:58 +0100)
modules/pref-feed-browser.php
prefs.js
tt-rss.css

index 4759a5f6a30f476b879559d44eee2d06cd762668..b209012796a8382e4c4d8f1a38168eab4d153c34 100644 (file)
                                $details["title"] ."</a>&nbsp;" .
                                "<span class='subscribers'>($subscribers)</span>";
                        
-                       print "<div class=\"browserDetails\" id=\"BRDET-" . $details["id"] . "\">";
+                       print "<div class=\"browserDetails\" style=\"display : none\" id=\"BRDET-" . $details["id"] . "\">";
                        print "</div>";
                                
                        print "</li>";
index 6609bcac2c20c45f6b5107691a60840957980a40..249a4d55ccc5e43201fa66966d6de17ad2b246cd 100644 (file)
--- a/prefs.js
+++ b/prefs.js
@@ -48,8 +48,9 @@ function expand_feed_callback() {
                try {   
                        var container = document.getElementById("BRDET-" + feed_to_expand);     
                        container.innerHTML=xmlhttp.responseText;
-                       container.style.display = "block";
+//                     container.style.display = "block";
 //                     p_notify("");
+                       Effect.SlideDown(container, {duration : 0.5});
                } catch (e) {
                        exception_error("expand_feed_callback", e);
                }
@@ -1533,16 +1534,16 @@ function browserToggleExpand(id) {
 
                var d = document.getElementById("BRDET-" + id);
 
-               if (d.style.display == "block") {               
+/*             if (d.style.display == "block") {               
                        d.style.display = "none";
                        
-               } else {
+               } else { */
        
+               if (Element.visible(d)) {
+                       Effect.SlideUp(d, {duration : 0.5});
+               } else {
                        feed_to_expand = id;
 
-                       d.style.display = "block";
-                       d.innerHTML = "Loading, please wait...";
-
                        xmlhttp.open("GET", "backend.php?op=pref-feed-browser&subop=details&id="
                                + param_escape(id), true);
                        xmlhttp.onreadystatechange=expand_feed_callback;
@@ -1550,7 +1551,7 @@ function browserToggleExpand(id) {
                }
 
        } catch (e) {
-               exception_error("browserExpand", e);
+               exception_error("browserToggleExpand", e);
        }
 }
 
index 36ae4b1a6943f9a39e658f6771df3c07d3492558..337e3fb9ec0ead06fced5ef578fc0ab9defcf249 100644 (file)
@@ -1035,6 +1035,10 @@ ul.userFeedList {
        -moz-border-radius : 5px;
 } */
 
+/*#browseBigFeedList li {
+       padding :0px;
+}*/
+
 ul.labelTestResults {
        height : 100px;
        overflow : auto;
@@ -1086,7 +1090,6 @@ input.feedBrowseCB {
 
 div.browserDetails {
        margin : 5px 5px 5px 5px;
-       display : none;
        padding : 5px;
 }