share_prefs.js 424 B

123456789101112131415161718192021
  1. function clearArticleAccessKeys() {
  2. var ok = confirm(__("This will invalidate all previously shared article URLs. Continue?"));
  3. if (ok) {
  4. notify_progress("Clearing URLs...");
  5. var query = "?op=pluginhandler&plugin=share&method=clearArticleKeys";
  6. new Ajax.Request("backend.php", {
  7. parameters: query,
  8. onComplete: function(transport) {
  9. notify_info("Shared URLs cleared.");
  10. } });
  11. }
  12. return false;
  13. }