summaryrefslogtreecommitdiff
path: root/plugins/share/share_prefs.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-07-11 14:11:41 +0400
committerAndrew Dolgov <[email protected]>2013-07-11 14:11:41 +0400
commit41a7a066eff0c4914720685c38fa282e99d79041 (patch)
tree1a9e55c8186cc77b1bfd0e15273b87a2a43e53ed /plugins/share/share_prefs.js
parent6e3224a26c46280a351fb0f28c6e9fc0b798ca53 (diff)
share: move unsharing all articles into the plugin
Diffstat (limited to 'plugins/share/share_prefs.js')
-rw-r--r--plugins/share/share_prefs.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/plugins/share/share_prefs.js b/plugins/share/share_prefs.js
new file mode 100644
index 000000000..9efe291f9
--- /dev/null
+++ b/plugins/share/share_prefs.js
@@ -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;
+}
+
+
+