]> git.wh0rd.org - tt-rss.git/commitdiff
feed browser, change slide effects to appear/fade
authorAndrew Dolgov <fox@bah.spb.su>
Sun, 12 Aug 2007 09:58:44 +0000 (10:58 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sun, 12 Aug 2007 09:58:44 +0000 (10:58 +0100)
prefs.js

index 249a4d55ccc5e43201fa66966d6de17ad2b246cd..a3012d11dfbdfd62d6f30fb62560a84878ba1afb 100644 (file)
--- a/prefs.js
+++ b/prefs.js
@@ -50,7 +50,7 @@ function expand_feed_callback() {
                        container.innerHTML=xmlhttp.responseText;
 //                     container.style.display = "block";
 //                     p_notify("");
-                       Effect.SlideDown(container, {duration : 0.5});
+                       Effect.Appear(container, {duration : 0.5});
                } catch (e) {
                        exception_error("expand_feed_callback", e);
                }
@@ -1532,15 +1532,14 @@ function browserToggleExpand(id) {
                        return
                }
 
-               var d = document.getElementById("BRDET-" + id);
+/*             if (feed_to_expand && id != feed_to_expand) {
+                       Effect.Fade('BRDET-' + feed_to_expand, {duration : 0.5});
+               } */
 
-/*             if (d.style.display == "block") {               
-                       d.style.display = "none";
-                       
-               } else { */
+               var d = document.getElementById("BRDET-" + id);
        
                if (Element.visible(d)) {
-                       Effect.SlideUp(d, {duration : 0.5});
+                       Effect.Fade(d, {duration : 0.5});
                } else {
                        feed_to_expand = id;