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