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, and handleForm() to handle the Submit action.

Arguments:
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, and handleForm() 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