1
0
mirror of https://tt-rss.org/git/tt-rss.git synced 2024-06-20 11:16:36 +02:00
ttrss/plugins/share/share_prefs.js
Andrew Dolgov 660a1bbe01 * switch to xhr.post() almost everywhere
* call App.handlerpcjson() automatically on json request (if possible)
 * show net/log indicators in prefs
2021-02-19 13:44:56 +03:00

16 lines
357 B
JavaScript

/* global Plugins, Notify, xhr, App */
Plugins.Share = {
clearKeys: function() {
if (confirm(__("This will invalidate all previously shared article URLs. Continue?"))) {
Notify.progress("Clearing URLs...");
xhr.post("backend.php", App.getPhArgs("share", "clearArticleKeys"), (reply) => {
Notify.info(reply);
});
}
return false;
}
};