mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-01-01 22:09:14 +00:00
migrate xhrJson invocations to the new helper
This commit is contained in:
@@ -152,7 +152,7 @@ class Mail extends Plugin {
|
||||
<script type='dojo/method' event='onSubmit' args='evt'>
|
||||
evt.preventDefault();
|
||||
if (this.validate()) {
|
||||
xhrJson("backend.php", this.getValues(), (reply) => {
|
||||
xhr.json("backend.php", this.getValues(), (reply) => {
|
||||
if (reply && reply.error)
|
||||
Notify.error(reply.error);
|
||||
else
|
||||
|
||||
@@ -17,7 +17,7 @@ Plugins.Mail = {
|
||||
title: __("Forward article by email"),
|
||||
execute: function () {
|
||||
if (this.validate()) {
|
||||
xhrJson("backend.php", this.attr('value'), (reply) => {
|
||||
xhr.json("backend.php", this.attr('value'), (reply) => {
|
||||
if (reply) {
|
||||
const error = reply['error'];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user