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

@@ -27,7 +27,7 @@ const Users = {
}
},
edit: function(id) {
xhrJson('backend.php', {op: 'pref-users', method: 'edit', id: id}, (reply) => {
xhr.json('backend.php', {op: 'pref-users', method: 'edit', id: id}, (reply) => {
const user = reply.user;
const admin_disabled = (user.id == 1);