jsdoc.fuel¶
File: biweeklybudget/flaskapp/static/js/fuel.js
-
fuelLogModal(dataTableObj)¶ Show the modal to add a fuel log entry. This function calls
fuelModalDivForm()to generate the form HTML,schedModalDivFillAndShow()to populate the form for editing, andhandleForm()to handle the Submit action.Arguments: - dataTableObj (Object|null) – passed on to
handleForm()
- dataTableObj (Object|null) – passed on to
-
fuelModalDivForm()¶ Generate the HTML for the form on the Modal
-
vehicleModal(id)¶ Show the Vehicle modal popup, optionally populated with information for one Vehicle. This function calls
vehicleModalDivForm()to generate the form HTML,vehicleModalDivFillAndShow()to populate the form for editing, andhandleForm()to handle the Submit action.Arguments: - id (number) – the ID of the Vehicle to show a modal for, or null to show modal to add a new Vehicle.
-
vehicleModalDivFillAndShow(msg)¶ Ajax callback to fill in the modalDiv with data on a Vehicle.
-
vehicleModalDivForm()¶ Generate the HTML for the form on the Modal