File: biweeklybudget/flaskapp/static/js/scheduled_modal.js

schedModal(id, dataTableObj)

Show the ScheduledTransaction modal popup, optionally populated with information for one ScheduledTransaction. This function calls schedModalDivForm() to generate the form HTML, schedModalDivFillAndShow() to populate the form for editing, and handleForm() to handle the Submit action.

  • id (number) – the ID of the ScheduledTransaction to show a modal for, or null to show modal to add a new ScheduledTransaction.
  • dataTableObj (Object|null) – passed on to handleForm()

Ajax callback to fill in the modalDiv with data on a budget.


Generate the HTML for the form on the Modal


Handle change of the “Type” radio buttons on the modal