summaryrefslogtreecommitdiff
path: root/prefs.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2011-10-04 13:11:07 +0400
committerAndrew Dolgov <[email protected]>2011-10-04 13:18:41 +0400
commit83cd33fcec05473bf2bd00836c7eaa7d9b584461 (patch)
tree024ff7b024164a27e93e362763883e66cb40fa4b /prefs.js
parent359fc686ddfc13dc1f9ee8127fd14a13a0ede4e8 (diff)
implement sharing articles by unique url
Diffstat (limited to 'prefs.js')
-rw-r--r--prefs.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/prefs.js b/prefs.js
index 1cf294329..8a2a018e1 100644
--- a/prefs.js
+++ b/prefs.js
@@ -1590,6 +1590,24 @@ function clearFeedAccessKeys() {
return false;
}
+function clearArticleAccessKeys() {
+
+ var ok = confirm(__("This will invalidate all previously shared article URLs. Continue?"));
+
+ if (ok) {
+ notify_progress("Clearing URLs...");
+
+ var query = "?op=rpc&subop=clearArticleKeys";
+
+ new Ajax.Request("backend.php", {
+ parameters: query,
+ onComplete: function(transport) {
+ notify_info("Shared URLs cleared.");
+ } });
+ }
+
+ return false;
+}
function resetFeedOrder() {
try {
notify_progress("Loading, please wait...");