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:
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user