Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | webui: Use the same "#modal-box" and the "showModal()" function | Aaron LI | 2016-11-28 | 1 | -5/+4 |
| | |||||
* | webui: main.js: Add the global object "FG21SIM" | Aaron LI | 2016-11-28 | 1 | -1/+2 |
| | |||||
* | webui: Some JavaScript cleanups and refactors | Aaron LI | 2016-11-28 | 1 | -4/+6 |
| | | | | | Credit: "JavaScript: The Good Parts" by Douglas Crockford | ||||
* | webui: Extend jQuery with "getJSONUncached()" | Aaron LI | 2016-11-24 | 1 | -6/+27 |
| | | | | | | | | | | This jQuery extension sent the AJAX GET request but force the requested page NOT to be cached by the browser! NOTE: IE will by default cache the GET request even the contents has changed. Credit: https://stackoverflow.com/a/35130770/4856091 | ||||
* | webui: Update modal box styles | Aaron LI | 2016-11-24 | 1 | -9/+9 |
| | |||||
* | webui: main.js: Prevent form submitting on "Enter" press | Aaron LI | 2016-11-24 | 1 | -0/+9 |
| | |||||
* | webui: main.js: Extend "showModal()" with "title" and "contents" | Aaron LI | 2016-11-22 | 1 | -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 LI | 2016-11-22 | 1 | -0/+46 |
| | |||||
* | webui: main.js: Extend jQuery with ".disable()" | Aaron LI | 2016-11-18 | 1 | -1/+16 |
| | |||||
* | webui: Redirect to login page if not authenticated on POST request | Aaron LI | 2016-11-18 | 1 | -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 LI | 2016-11-17 | 1 | -1/+1 |
| | |||||
* | webui: Implement "showModal()" in "main.js" allowing use in others | Aaron LI | 2016-11-17 | 1 | -0/+55 |
| | |||||
* | webui: main.js: Refactor out the function "toggleBlock()" | Aaron LI | 2016-11-17 | 1 | -22/+20 |
| | |||||
* | webui: Support toggle the body/contents of sections | Aaron LI | 2016-11-17 | 1 | -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 body | Aaron LI | 2016-11-17 | 1 | -0/+17 |
| | |||||
* | webui: main.js: Add "getCookie()" and "jQuery.postJSON()" functions | Aaron LI | 2016-11-16 | 1 | -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 it | Aaron LI | 2016-11-16 | 1 | -17/+16 |
| | |||||
* | webui: small misc changes | Aaron LI | 2016-11-07 | 1 | -0/+2 |
| | | | | | | * milligram.css: Remove the "sourceMappingURL" * main.js: Add "use strict"; * utils.py: Add a TODO task | ||||
* | webui: Add the main CSS and JavaScript | Aaron LI | 2016-11-01 | 1 | -0/+28 |
The js code still misses many necessary functions. |