summaryrefslogtreecommitdiff
path: root/js/Article.js
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 /js/Article.js
parentdba6dce3b332f1c7cfb60e3411c6b85c01be7471 (diff)
migrate xhrJson invocations to the new helper
Diffstat (limited to 'js/Article.js')
-rw-r--r--js/Article.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/Article.js b/js/Article.js
index 90be90f7b..379e05644 100644
--- a/js/Article.js
+++ b/js/Article.js
@@ -115,7 +115,7 @@ const Article = {
displayUrl: function (id) {
const query = {op: "article", method: "getmetadatabyid", id: id};
- xhrJson("backend.php", query, (reply) => {
+ xhr.json("backend.php", query, (reply) => {
if (reply && reply.link) {
prompt(__("Article URL:"), reply.link);
} else {
@@ -358,7 +358,7 @@ const Article = {
const tmph = dojo.connect(dialog, 'onShow', function () {
dojo.disconnect(tmph);
- xhrJson("backend.php", {op: "article", method: "printArticleTags", id: id}, (reply) => {
+ xhr.json("backend.php", {op: "article", method: "printArticleTags", id: id}, (reply) => {
dijit.getEnclosingWidget(App.byId("tags_str"))
.attr('value', reply.tags.join(", "))