jsdoc.budgets_modal¶
File: biweeklybudget/flaskapp/static/js/budgets_modal.js
-
budgetModal(id, dataTableObj)¶ Show the modal popup, populated with information for one Budget. Uses
budgetModalDivFillAndShow()as ajax callback.Arguments: - id (number) – the ID of the Budget to show modal for, or null to show a modal to add a new Budget.
- dataTableObj (Object|null) – passed on to
handleForm()
-
budgetModalDivFillAndShow(msg)¶ Ajax callback to fill in the modalDiv with data on a budget. Callback for ajax call in
budgetModal().
-
budgetModalDivForm()¶ Generate the HTML for the form on the Modal
-
budgetModalDivHandleType()¶ Handle change of the “Type” radio buttons on the modal