From 83cd33fcec05473bf2bd00836c7eaa7d9b584461 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 4 Oct 2011 13:11:07 +0400 Subject: implement sharing articles by unique url --- prefs.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'prefs.js') 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..."); -- cgit v1.2.3