summaryrefslogtreecommitdiff
path: root/plugins/share/share_prefs.js
blob: e4c22262a53b0915713e056007a386422fe36712 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
function clearArticleAccessKeys() {
	if (confirm(__("This will invalidate all previously shared article URLs. Continue?"))) {
		notify_progress("Clearing URLs...");

		var query = "?op=pluginhandler&plugin=share&method=clearArticleKeys";

		new Ajax.Request("backend.php", {
			parameters: query,
			onComplete: function(transport) {
				notify_info("Shared URLs cleared.");
			} });
	}

	return false;
}