2013-07-11 12:11:41 +02:00
|
|
|
function clearArticleAccessKeys() {
|
2018-11-30 11:05:59 +01:00
|
|
|
if (confirm(__("This will invalidate all previously shared article URLs. Continue?"))) {
|
2018-12-02 18:56:30 +01:00
|
|
|
Notify.progress("Clearing URLs...");
|
2013-07-11 12:11:41 +02:00
|
|
|
|
2018-11-30 13:23:48 +01:00
|
|
|
const query = { op: "pluginhandler", plugin: "share", method: "clearArticleKeys" };
|
2013-07-11 12:11:41 +02:00
|
|
|
|
2018-11-30 13:23:48 +01:00
|
|
|
xhrPost("backend.php", query, () => {
|
2018-12-02 18:56:30 +01:00
|
|
|
Notify.info("Shared URLs cleared.");
|
2018-11-30 13:23:48 +01:00
|
|
|
});
|
2013-07-11 12:11:41 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|