]> git.wh0rd.org - tt-rss.git/blobdiff - plugins/share/share_prefs.js
share: move unsharing all articles into the plugin
[tt-rss.git] / plugins / share / share_prefs.js
diff --git a/plugins/share/share_prefs.js b/plugins/share/share_prefs.js
new file mode 100644 (file)
index 0000000..9efe291
--- /dev/null
@@ -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;
+}
+
+
+