]> git.wh0rd.org - tt-rss.git/blame - plugins/share/share_prefs.js
share: move unsharing all articles into the plugin
[tt-rss.git] / plugins / share / share_prefs.js
CommitLineData
41a7a066
AD
1function clearArticleAccessKeys() {
2
3 var ok = confirm(__("This will invalidate all previously shared article URLs. Continue?"));
4
5 if (ok) {
6 notify_progress("Clearing URLs...");
7
8 var query = "?op=pluginhandler&plugin=share&method=clearArticleKeys";
9
10 new Ajax.Request("backend.php", {
11 parameters: query,
12 onComplete: function(transport) {
13 notify_info("Shared URLs cleared.");
14 } });
15 }
16
17 return false;
18}
19
20
21