aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/webui/static/js/main.js
Commit message (Collapse)AuthorAgeFilesLines
* webui: main.js: Extend "showModal()" with "title" and "contents"Aaron LI2016-11-221-4/+15
| | | | | * Change original "message" attribute to "title" * Add new attribute "contents" which allow multiple paragraphs
* webui: Move several generic functions from "configs.js" to "main.js"Aaron LI2016-11-221-0/+46
|
* webui: main.js: Extend jQuery with ".disable()"Aaron LI2016-11-181-1/+16
|
* webui: Redirect to login page if not authenticated on POST requestAaron LI2016-11-181-5/+13
| | | | | | * 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: Fix a bug for "showModal()"; Cleanup ".onmessage()"Aaron LI2016-11-171-1/+1
|
* webui: Implement "showModal()" in "main.js" allowing use in othersAaron LI2016-11-171-0/+55
|
* webui: main.js: Refactor out the function "toggleBlock()"Aaron LI2016-11-171-22/+20
|
* webui: Support toggle the body/contents of sectionsAaron LI2016-11-171-0/+17
| | | | | | The section header has class "heading" and a toggle control with class "toggle", which will toggle the display of the next block with the "body" class.
* webui: Add panel toggle and allow expand/collapse its bodyAaron LI2016-11-171-0/+17
|
* webui: main.js: Add "getCookie()" and "jQuery.postJSON()" functionsAaron LI2016-11-161-0/+56
| | | | | | | | * 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.
* webui: Rename "scroll_target()" to "scrollTarget()" and export itAaron LI2016-11-161-17/+16
|
* webui: small misc changesAaron LI2016-11-071-0/+2
| | | | | | * milligram.css: Remove the "sourceMappingURL" * main.js: Add "use strict"; * utils.py: Add a TODO task
* webui: Add the main CSS and JavaScriptAaron LI2016-11-011-0/+28
The js code still misses many necessary functions.