]> git.wh0rd.org - tt-rss.git/blobdiff - functions.js
outputFeedList: fix markup problems
[tt-rss.git] / functions.js
index 7fe79c9a821f6ce4ea2825b848ff4082fa4fc465..b26f75fd8a1ebd7d719d6ce952a4592d6c2e1705 100644 (file)
@@ -1252,11 +1252,18 @@ function getRelativeFeedId(list, id, direction, unread_only) {
        }
 }
 
-function showBlockElement(id) {
+function showBlockElement(id, h_id) {
        var elem = document.getElementById(id);
 
        if (elem) {
                elem.style.display = "block";
+
+               if (h_id) {
+                       elem = document.getElementById(h_id);
+                       if (elem) {
+                               elem.style.display = "none";
+                       }
+               }
        } else {
                alert("[showBlockElement] can't find element with id " + id);
        } 
@@ -1437,6 +1444,8 @@ function qaddFeed() {
        
        var query = Form.serialize("feed_add_form");
        
+       debug("subscribe q: " + query);
+
 /*     xmlhttp.open("GET", "backend.php?" + query, true);
        xmlhttp.onreadystatechange=dlg_frefresh_callback;
        xmlhttp.send(null); */