diff options
author | Aaron LI <aaronly.me@outlook.com> | 2016-11-16 17:44:41 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@outlook.com> | 2016-11-16 17:44:41 +0800 |
commit | 75d6c2bf1374033ee6ae94c3d17765f72002e935 (patch) | |
tree | 7cc2ffe693817acf7d8bd3f08c62389204ffebfc /fg21sim/webui/templates/console.html | |
parent | b32106dbe5008b9125d4a31fa87bb155358b03b7 (diff) | |
download | fg21sim-75d6c2bf1374033ee6ae94c3d17765f72002e935.tar.bz2 |
webui: main.js: Add "getCookie()" and "jQuery.postJSON()" functions
* Add function "getCookie()": get the value of the specified key from
the cookies;
* Add jQuery extension ".postJSON()": wrapper for easier AJAX post,
with the XSRF header and correct content type;
* Also set the default "error" handle function for AJAX request.
Diffstat (limited to 'fg21sim/webui/templates/console.html')
0 files changed, 0 insertions, 0 deletions