summaryrefslogtreecommitdiff
path: root/plugins/mail
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-19 10:22:00 +0300
committerAndrew Dolgov <[email protected]>2021-02-19 10:22:00 +0300
commit6b43b788d909ce20f07f29f9f3ccd2f6a8715616 (patch)
tree1a2f08c9cb565f3d9eb95b884f3c3891685d04bd /plugins/mail
parentdba6dce3b332f1c7cfb60e3411c6b85c01be7471 (diff)
migrate xhrJson invocations to the new helper
Diffstat (limited to 'plugins/mail')
-rw-r--r--plugins/mail/init.php2
-rw-r--r--plugins/mail/mail.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mail/init.php b/plugins/mail/init.php
index d96006b21..16e22f342 100644
--- a/plugins/mail/init.php
+++ b/plugins/mail/init.php
@@ -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
diff --git a/plugins/mail/mail.js b/plugins/mail/mail.js
index 36b0baac5..fc0898085 100644
--- a/plugins/mail/mail.js
+++ b/plugins/mail/mail.js
@@ -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'];