From f27de5153111f07ecfa6204baa2b77c93b48a09d Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 25 Apr 2007 16:00:08 +0100 Subject: add auth support to subscribe-to-feed dialog --- functions.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'functions.js') diff --git a/functions.js b/functions.js index 7fe79c9a8..b26f75fd8 100644 --- a/functions.js +++ b/functions.js @@ -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); */ -- cgit v1.2.3