diff options
author | Andrew Dolgov <[email protected]> | 2011-10-04 13:11:07 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2011-10-04 13:18:41 +0400 |
commit | 83cd33fcec05473bf2bd00836c7eaa7d9b584461 (patch) | |
tree | 024ff7b024164a27e93e362763883e66cb40fa4b /prefs.js | |
parent | 359fc686ddfc13dc1f9ee8127fd14a13a0ede4e8 (diff) |
implement sharing articles by unique url
Diffstat (limited to 'prefs.js')
-rw-r--r-- | prefs.js | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -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..."); |