feed browser, change slide effects to appear/fade

This commit is contained in:
Andrew Dolgov 2007-08-12 10:58:44 +01:00
parent 68a89c301e
commit 051c4d56ca

View file

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