summaryrefslogtreecommitdiff
path: root/plugins/af_proxy_http
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-19 13:44:56 +0300
committerAndrew Dolgov <[email protected]>2021-02-19 13:44:56 +0300
commit660a1bbe011fef5f0fa6bb0af43521fed7598cc7 (patch)
treef31ee123db91e479b93a6d086fd78de2ecfae014 /plugins/af_proxy_http
parentbb4e4282f46824308aebc2eaeac29fa29f8687ad (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 'plugins/af_proxy_http')
-rw-r--r--plugins/af_proxy_http/init.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/af_proxy_http/init.php b/plugins/af_proxy_http/init.php
index 2c472a32d..a5ba1d62d 100644
--- a/plugins/af_proxy_http/init.php
+++ b/plugins/af_proxy_http/init.php
@@ -221,8 +221,8 @@ class Af_Proxy_Http extends Plugin {
<script type="dojo/method" event="onSubmit" args="evt">
evt.preventDefault();
if (this.validate()) {
- xhrPost("backend.php", this.getValues(), (transport) => {
- Notify.info(transport.responseText);
+ xhr.post("backend.php", this.getValues(), (reply) => {
+ Notify.info(reply);
})
}
</script>