diff options
author | Aaron LI <aaronly.me@outlook.com> | 2016-11-16 21:50:37 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@outlook.com> | 2016-11-16 21:50:37 +0800 |
commit | 695c1b3b12db4db77a2ad7aba478ba4fd42dd76f (patch) | |
tree | ad86f778052dcbae28d39b3666fcca82d4be3f1f /fg21sim/webui/templates/index.html | |
parent | 43b3bff5df35333e1316281b9009bd920b761592 (diff) | |
download | fg21sim-695c1b3b12db4db77a2ad7aba478ba4fd42dd76f.tar.bz2 |
webui: configs.js: Re-implement using AJAX instead of WebSocket
* Interact with server-side configurations using AJAX GET and POST,
instead of sending and receiving messages through the WebSocket.
* Add callbacks on both AJAX success and error, to show a modal box
displaying the operation results/errors, achieving better user
experiences.
* Use jQuery deferred and promises to achieve sequential operations.
* Also move the binding function from "websocket.js" to "configs.js"
Diffstat (limited to 'fg21sim/webui/templates/index.html')
0 files changed, 0 insertions, 0 deletions