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