diff options
author | Andrew Dolgov <[email protected]> | 2021-02-17 08:52:39 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-17 08:52:39 +0300 |
commit | 7adcada324dc6960cf4a120b1397c1bd60521d9b (patch) | |
tree | c12f6a0aec54689ac18840dc6c533697e0818f95 /plugins/share/share_prefs.js | |
parent | 0fc783e2b350b8ac6ff275fd9b201674cbcf2c16 (diff) |
share plugin: cleanup, fix icon not highlighting properly
Diffstat (limited to 'plugins/share/share_prefs.js')
-rw-r--r-- | plugins/share/share_prefs.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/share/share_prefs.js b/plugins/share/share_prefs.js index 071a6667c..29c9aeaf8 100644 --- a/plugins/share/share_prefs.js +++ b/plugins/share/share_prefs.js @@ -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); }); } |