2021-02-19 10:44:56 +00:00
|
|
|
/* global Plugins, Notify, xhr, App */
|
2021-02-17 05:52:39 +00:00
|
|
|
|
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
|
|
|
|
2021-02-19 10:44:56 +00:00
|
|
|
xhr.post("backend.php", App.getPhArgs("share", "clearArticleKeys"), (reply) => {
|
|
|
|
Notify.info(reply);
|
2018-12-03 07:51:14 +00:00
|
|
|
});
|
|
|
|
}
|
2013-07-11 10:11:41 +00:00
|
|
|
|
2018-12-03 07:51:14 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
};
|