1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-15 10:15:57 +00:00

prefs: add button to clear all generated URLs

This commit is contained in:
Andrew Dolgov
2010-11-08 14:51:58 +03:00
parent aa1c2aa4f9
commit 8d86f15f40
3 changed files with 33 additions and 0 deletions

View File

@@ -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;
}