mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 22:35:55 +00:00
* switch to xhr.post() almost everywhere
* call App.handlerpcjson() automatically on json request (if possible) * show net/log indicators in prefs
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
/* global Plugins, Notify, xhrPost */
|
||||
/* global Plugins, Notify, xhr, App */
|
||||
|
||||
Plugins.Share = {
|
||||
clearKeys: function() {
|
||||
if (confirm(__("This will invalidate all previously shared article URLs. Continue?"))) {
|
||||
Notify.progress("Clearing URLs...");
|
||||
|
||||
xhrPost("backend.php", App.getPhArgs("share", "clearArticleKeys"), (transport) => {
|
||||
Notify.info(transport.responseText);
|
||||
xhr.post("backend.php", App.getPhArgs("share", "clearArticleKeys"), (reply) => {
|
||||
Notify.info(reply);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user