1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 18:55:55 +00:00

share: move unsharing all articles into the plugin

This commit is contained in:
Andrew Dolgov
2013-07-11 14:11:41 +04:00
parent 6e3224a26c
commit 41a7a066ef
5 changed files with 51 additions and 36 deletions

View File

@@ -0,0 +1,21 @@
function clearArticleAccessKeys() {
var ok = confirm(__("This will invalidate all previously shared article URLs. Continue?"));
if (ok) {
notify_progress("Clearing URLs...");
var query = "?op=pluginhandler&plugin=share&method=clearArticleKeys";
new Ajax.Request("backend.php", {
parameters: query,
onComplete: function(transport) {
notify_info("Shared URLs cleared.");
} });
}
return false;
}