1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-22 05:01:27 +00:00

browser interface tweaks

This commit is contained in:
Andrew Dolgov
2005-12-30 07:00:36 +01:00
parent 0010d872eb
commit c2b2aee071
3 changed files with 63 additions and 9 deletions

View File

@@ -1380,19 +1380,27 @@ function updateBigFeedBrowser() {
}
function browserExpand(id) {
function browserToggleExpand(id) {
try {
/* if (feed_to_expand && feed_to_expand != id) {
var d = document.getElementById("BRDET-" + feed_to_expand);
d.style.display = "none";
} */
feed_to_expand = id;
xmlhttp.open("GET", "backend.php?op=pref-feed-browser&subop=details&id="
+ param_escape(id), true);
xmlhttp.onreadystatechange=expand_feed_callback;
xmlhttp.send(null);
var d = document.getElementById("BRDET-" + id);
if (d.style.display == "block") {
d.style.display = "none";
} else {
feed_to_expand = id;
xmlhttp.open("GET", "backend.php?op=pref-feed-browser&subop=details&id="
+ param_escape(id), true);
xmlhttp.onreadystatechange=expand_feed_callback;
xmlhttp.send(null);
}
} catch (e) {
exception_error("browserExpand", e);