1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 18:55:55 +00:00

share plugin: cleanup, fix icon not highlighting properly

This commit is contained in:
Andrew Dolgov
2021-02-17 08:52:39 +03:00
parent 0fc783e2b3
commit 7adcada324
4 changed files with 52 additions and 53 deletions

View File

@@ -1,12 +1,12 @@
/* global Plugins, Notify, xhrPost */
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.");
xhrPost("backend.php", {op: "pluginhandler", plugin: "share", method: "clearArticleKeys"}, (transport) => {
Notify.info(transport.responseText);
});
}