diff options
author | Andrew Dolgov <[email protected]> | 2021-02-19 11:28:14 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-19 11:28:14 +0300 |
commit | bb4e4282f46824308aebc2eaeac29fa29f8687ad (patch) | |
tree | 8355547f2cf4baefc4a41146d27dcbd3240f724a /js/PrefUsers.js | |
parent | 6b43b788d909ce20f07f29f9f3ccd2f6a8715616 (diff) |
migrate a bunch of xhrPost invocations
Diffstat (limited to 'js/PrefUsers.js')
-rw-r--r-- | js/PrefUsers.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/PrefUsers.js b/js/PrefUsers.js index 5b490a2a5..9b9c1deaf 100644 --- a/js/PrefUsers.js +++ b/js/PrefUsers.js @@ -1,7 +1,7 @@ 'use strict' /* global __ */ -/* global xhrPost, xhrJson, dijit, Notify, Tables, App, fox */ +/* global xhrPost, xhr, dijit, Notify, Tables, App, fox */ const Users = { reload: function(sort) { @@ -38,7 +38,7 @@ const Users = { if (this.validate()) { Notify.progress("Saving data...", true); - xhrPost("backend.php", this.attr('value'), () => { + xhr.post("backend.php", this.attr('value'), () => { dialog.hide(); Users.reload(); }); @@ -160,7 +160,7 @@ const Users = { ids: sel_rows.toString() }; - xhrPost("backend.php", query, () => { + xhr.post("backend.php", query, () => { this.reload(); }); } |