1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-02-09 00:31:34 +00:00

migrate xhrJson invocations to the new helper

This commit is contained in:
Andrew Dolgov
2021-02-19 10:22:00 +03:00
parent dba6dce3b3
commit 6b43b788d9
15 changed files with 30 additions and 40 deletions

View File

@@ -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