mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-01-27 15:17:10 +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:
@@ -51,8 +51,8 @@ class Mail extends Plugin {
|
||||
evt.preventDefault();
|
||||
if (this.validate()) {
|
||||
Notify.progress('Saving data...', true);
|
||||
xhrPost("backend.php", this.getValues(), (transport) => {
|
||||
Notify.info(transport.responseText);
|
||||
xhr.post("backend.php", this.getValues(), (reply) => {
|
||||
Notify.info(reply);
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* global Plugins, Headlines, dojo, xhrPost, xhrJson, Notify, fox, __ */
|
||||
/* global Plugins, Headlines, dojo, App, xhr, Notify, fox, __ */
|
||||
|
||||
Plugins.Mail = {
|
||||
send: function(id) {
|
||||
@@ -38,8 +38,8 @@ Plugins.Mail = {
|
||||
const tmph = dojo.connect(dialog, 'onShow', function () {
|
||||
dojo.disconnect(tmph);
|
||||
|
||||
xhrPost("backend.php", App.getPhArgs("mail", "emailArticle", {ids: id}), (transport) => {
|
||||
dialog.attr('content', transport.responseText);
|
||||
xhr.post("backend.php", App.getPhArgs("mail", "emailArticle", {ids: id}), (reply) => {
|
||||
dialog.attr('content', reply);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user