summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-04-25 16:00:08 +0100
committerAndrew Dolgov <[email protected]>2007-04-25 16:00:08 +0100
commitf27de5153111f07ecfa6204baa2b77c93b48a09d (patch)
treea6e606e9458ef6c5915fb060c153beebc02c27d3 /functions.js
parentbce7001fd1f1c2f105e7ebe9d1b533cf553bb3c5 (diff)
add auth support to subscribe-to-feed dialog
Diffstat (limited to 'functions.js')
-rw-r--r--functions.js11
1 files changed, 10 insertions, 1 deletions
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); */