aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/webui/handlers/configs.py
Commit message (Collapse)AuthorAgeFilesLines
* webui: configs: Some minor fixesAaron LI2016-11-221-3/+11
| | | | | | | | * configs.py/_set_configs(): Also return the original data if the input values failed the validation; * setServerConfigs(): Success callback also reset value if the input value failed pass the server-side validation; * getServerConfigs(): Return "undefined" if key does not exists.
* webui: Redirect to login page if not authenticated on POST requestAaron LI2016-11-181-1/+0
| | | | | | * Remove the authentication requirement on GET operation * "main.js": Redirect to the login page if POST response 403 forbidden * "main.js": Use global AJAX events handling instead of `$.ajaxSetup()`
* webui: configs.py: Add "exists" action support through GETAaron LI2016-11-171-0/+40
| | | | | The "exists" action through the GET request will check the existence of the specified filepath (which should be an absolute path).
* webui: configs.py: Re-implement using AJAX instead of WebSocketAaron LI2016-11-161-103/+110
|
* webui: Split "handers/configs.py" from "handlers/websocket.py"Aaron LI2016-11-151-0/+265
Split "ConfigsHandler" from "FG21simWSHandler" as "handlers/configs.py"