summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-05-20 15:53:41 +0100
committerAndrew Dolgov <[email protected]>2006-05-20 15:53:41 +0100
commit07eb9178463a08ae4aaad49ae53ea92909dfbfa4 (patch)
tree05f16e9201bb8284f2e2dbea53342baee61d7e76 /functions.js
parent881033015adbb313e5a1a63521d2f8a0d1d580b1 (diff)
quick add feed dialog uses prototype
Diffstat (limited to 'functions.js')
-rw-r--r--functions.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/functions.js b/functions.js
index 209ca340a..fda1ff4e4 100644
--- a/functions.js
+++ b/functions.js
@@ -1007,3 +1007,27 @@ function toggleSubmitNotEmpty(e, submit_id) {
function isValidURL(s) {
return s.match("http://") != null || s.match("https://") != null;
}
+
+function qafAdd() {
+
+ if (!xmlhttp_ready(xmlhttp)) {
+ printLockingError();
+ return
+ }
+
+ notify("Adding feed...");
+
+ closeInfoBox();
+
+ var feeds_doc = window.frames["feeds-frame"].document;
+
+ feeds_doc.location.href = "backend.php?op=error&msg=Loading,%20please wait...";
+
+ var query = Form.serialize("feed_add_form");
+
+ xmlhttp.open("GET", "backend.php?" + query, true);
+ xmlhttp.onreadystatechange=dlg_frefresh_callback;
+ xmlhttp.send(null);
+
+}
+