$details["title"] ."</a> " .
"<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>";
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);
}
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;
}
} catch (e) {
- exception_error("browserExpand", e);
+ exception_error("browserToggleExpand", e);
}
}