summaryrefslogtreecommitdiff
path: root/prefs.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2008-08-06 09:18:02 +0100
committerAndrew Dolgov <[email protected]>2008-08-06 09:18:02 +0100
commitc8d5dcfe2b640d0a0d8d9d6904fcc0f0ce9d1b1c (patch)
treec454274d4b10dabad6d7395467bb9778828860f8 /prefs.js
parenta44db887de77a0d2284a375c8af6d765f8fc4eb9 (diff)
feed editor: add button to unsubscribe feed
Diffstat (limited to 'prefs.js')
-rw-r--r--prefs.js28
1 files changed, 28 insertions, 0 deletions
diff --git a/prefs.js b/prefs.js
index a5fc6c544..d1cfae7b0 100644
--- a/prefs.js
+++ b/prefs.js
@@ -2182,3 +2182,31 @@ function removeFilter(id, title) {
return false;
}
+function unsubscribeFeed(id, title) {
+
+ if (!xmlhttp_ready(xmlhttp)) {
+ printLockingError();
+ return
+ }
+
+ var msg = __("Unsubscribe from %s?").replace("%s", title);
+
+ var ok = confirm(msg);
+
+ if (ok) {
+ closeInfoBox();
+
+ notify_progress("Removing feed...");
+
+ xmlhttp.open("GET", "backend.php?op=pref-feeds&subop=remove&ids="+
+ param_escape(id), true);
+ xmlhttp.onreadystatechange=filterlist_callback;
+ xmlhttp.send(null);
+ }
+
+ return false;
+
+ return false;
+
+}
+