2018-12-03 07:51:14 +00:00
|
|
|
Plugins.Share = {
|
|
|
|
clearKeys: function() {
|
|
|
|
if (confirm(__("This will invalidate all previously shared article URLs. Continue?"))) {
|
|
|
|
Notify.progress("Clearing URLs...");
|
2013-07-11 10:11:41 +00:00
|
|
|
|
2018-12-03 07:51:14 +00:00
|
|
|
const query = {op: "pluginhandler", plugin: "share", method: "clearArticleKeys"};
|
2013-07-11 10:11:41 +00:00
|
|
|
|
2018-12-03 07:51:14 +00:00
|
|
|
xhrPost("backend.php", query, () => {
|
|
|
|
Notify.info("Shared URLs cleared.");
|
|
|
|
});
|
|
|
|
}
|
2013-07-11 10:11:41 +00:00
|
|
|
|
2018-12-03 07:51:14 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
};
|