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 /plugins/nsfw/init.php | |
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 'plugins/nsfw/init.php')
-rw-r--r-- | plugins/nsfw/init.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/nsfw/init.php b/plugins/nsfw/init.php index fdc6a3974..3205b436b 100644 --- a/plugins/nsfw/init.php +++ b/plugins/nsfw/init.php @@ -56,8 +56,8 @@ class NSFW extends Plugin { evt.preventDefault(); if (this.validate()) { Notify.progress('Saving data...', true); - xhrPost("backend.php", this.getValues(), (transport) => { - Notify.info(transport.responseText); + xhr.post("backend.php", this.getValues(), (reply) => { + Notify.info(reply); }) } </script> |