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:
21
prefs.js
21
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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user