mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-18 21:41:29 +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,4 +1,4 @@
|
||||
/* global Plugins, Headlines, xhrPost, dojo, fox, __ */
|
||||
/* global Plugins, Headlines, xhr, dojo, fox, __ */
|
||||
|
||||
Plugins.Mailto = {
|
||||
send: function (id) {
|
||||
@@ -21,8 +21,8 @@ Plugins.Mailto = {
|
||||
const tmph = dojo.connect(dialog, 'onShow', function () {
|
||||
dojo.disconnect(tmph);
|
||||
|
||||
xhrPost("backend.php", App.getPhArgs("mailto", "emailArticle", {ids: id}), (transport) => {
|
||||
dialog.attr('content', transport.responseText);
|
||||
xhr.post("backend.php", App.getPhArgs("mailto", "emailArticle", {ids: id}), (reply) => {
|
||||
dialog.attr('content', reply);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user