summaryrefslogtreecommitdiff
path: root/plugins/share/share_prefs.js
blob: 071a6667c85d0b44024144584f1b052d962e08d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Plugins.Share = {
	clearKeys: function() {
		if (confirm(__("This will invalidate all previously shared article URLs. Continue?"))) {
			Notify.progress("Clearing URLs...");

			const query = {op: "pluginhandler", plugin: "share", method: "clearArticleKeys"};

			xhrPost("backend.php", query, () => {
				Notify.info("Shared URLs cleared.");
			});
		}

		return false;
	}
};