summaryrefslogtreecommitdiff
path: root/prefs.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-08 14:51:58 +0300
committerAndrew Dolgov <[email protected]>2010-11-08 14:51:58 +0300
commit8d86f15f40c45592f189614938e7ec88dadc0bb5 (patch)
treed83cec35903c2f43e1926e7247747c46c863cb51 /prefs.js
parentaa1c2aa4f9eecdad2da212c731573b4aa1604dd0 (diff)
prefs: add button to clear all generated URLs
Diffstat (limited to 'prefs.js')
-rw-r--r--prefs.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/prefs.js b/prefs.js
index 5ba267b77..33ed8fd76 100644
--- a/prefs.js
+++ b/prefs.js
@@ -2088,3 +2088,24 @@ function opmlImportHandler(iframe) {
exception_error("opml_import_handler", e);
}
}
+
+function clearFeedAccessKeys() {
+
+ var ok = confirm(__("This will invalidate all previously generated feed URLs. Continue?"));
+
+ if (ok) {
+ notify_progress("Clearing URLs...");
+
+ var query = "?op=rpc&subop=clearKeys";
+
+ new Ajax.Request("backend.php", {
+ parameters: query,
+ onComplete: function(transport) {
+ notify_info("Generated URLs cleared.");
+ } });
+ }
+
+ return false;
+}
+
+