From 50eb3f080c9e1619dadecf949b6259e70a2e5fdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Sun, 9 Aug 2020 17:11:20 +0800 Subject: [PATCH] Fixed the summary helper when starting a summary helper from a newly-added record in the transaction form in the accounting application. --- accounting/static/accounting/js/transaction-form.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accounting/static/accounting/js/transaction-form.js b/accounting/static/accounting/js/transaction-form.js index 8fd5a5c..ab9085f 100644 --- a/accounting/static/accounting/js/transaction-form.js +++ b/accounting/static/accounting/js/transaction-form.js @@ -245,7 +245,7 @@ function insertNewRecord(type, newNo) { }) .on("click", function () { if (typeof startSummaryHelper === "function") { - startSummaryHelper(this); + startSummaryHelper($(this)); } }); $("#" + type + "-" + newNo + "-amount")