diff options
author | Andrew Dolgov <[email protected]> | 2021-02-19 13:44:56 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-19 13:44:56 +0300 |
commit | 660a1bbe011fef5f0fa6bb0af43521fed7598cc7 (patch) | |
tree | f31ee123db91e479b93a6d086fd78de2ecfae014 /js/PrefFilterTree.js | |
parent | bb4e4282f46824308aebc2eaeac29fa29f8687ad (diff) |
* switch to xhr.post() almost everywhere
* call App.handlerpcjson() automatically on json request (if possible)
* show net/log indicators in prefs
Diffstat (limited to 'js/PrefFilterTree.js')
-rw-r--r-- | js/PrefFilterTree.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/PrefFilterTree.js b/js/PrefFilterTree.js index cc37808be..fff58ff1a 100644 --- a/js/PrefFilterTree.js +++ b/js/PrefFilterTree.js @@ -1,5 +1,5 @@ /* eslint-disable prefer-rest-params */ -/* global __, define, lib, dijit, dojo, xhr, Notify */ +/* global __, define, lib, dijit, dojo, xhr, App, Notify */ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree"], function (declare, domConstruct) { @@ -91,8 +91,8 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree"], functio let search = ""; if (user_search) { search = user_search.value; } - xhrPost("backend.php", { op: "pref-filters", search: search }, (transport) => { - dijit.byId('filtersTab').attr('content', transport.responseText); + xhr.post("backend.php", { op: "pref-filters", search: search }, (reply) => { + dijit.byId('filtersTab').attr('content', reply); Notify.close(); }); }, |