jsdoc.credit_payoffs¶
File: biweeklybudget/flaskapp/static/js/credit_payoffs.js
-
addIncrease(settings)¶ Link handler to add another “starting on, increase payments by” form to the credit payoff page.
-
addOnetime(settings)¶ Link handler to add another one time payment form to the credit payoff page.
-
loadSettings()¶ Load settings from embedded JSON. Called on page load.
-
nextIndex(prefix)¶ Return the next index for the form with an ID beginning with a given string.
Arguments: - prefix (string) – The prefix of the form IDs.
Returns: int – next form index
-
recalcPayoffs()¶ Buttom handler to serialize and submit the forms, to save user input and recalculate the payoff amounts.
-
removeIncrease(idx)¶ Remove the specified Increase form.
-
removeOnetime(idx)¶ Remove the specified Onetime form.
-
serializeForms()¶ Serialize the form data into an object and return it.
Returns: Object – serialized forms.
-
setChanged()¶ Event handler to activate the “Save & Recalculate” button when user input fields have changed.