summaryrefslogtreecommitdiff
path: root/js/PrefHelpers.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/PrefHelpers.js
parentdba6dce3b332f1c7cfb60e3411c6b85c01be7471 (diff)
migrate xhrJson invocations to the new helper
Diffstat (limited to 'js/PrefHelpers.js')
-rw-r--r--js/PrefHelpers.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/PrefHelpers.js b/js/PrefHelpers.js
index d4db15c3b..c17966291 100644
--- a/js/PrefHelpers.js
+++ b/js/PrefHelpers.js
@@ -132,7 +132,7 @@ const Helpers = {
}
},
refresh: function() {
- xhrJson("backend.php", {op: 'pref-prefs', method: 'getprofiles'}, (reply) => {
+ xhr.json("backend.php", {op: 'pref-prefs', method: 'getprofiles'}, (reply) => {
dialog.attr('content', `
<div dojoType='fox.Toolbar'>
<div dojoType='fox.form.DropDownButton'>
@@ -212,7 +212,7 @@ const Helpers = {
},
Prefs: {
customizeCSS: function() {
- xhrJson("backend.php", {op: "pref-prefs", method: "customizeCSS"}, (reply) => {
+ xhr.json("backend.php", {op: "pref-prefs", method: "customizeCSS"}, (reply) => {
const dialog = new fox.SingleUseDialog({
title: __("Customize stylesheet"),