1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-14 17:55:55 +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

@@ -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"),