From ed82a3ebe79df5554c41c5a41e84a3b01085823b Mon Sep 17 00:00:00 2001 From: aandrade Date: Tue, 8 Oct 2024 18:21:02 -0400 Subject: [PATCH 1/2] [TTPLAT-2425] Trigger manual change event when xeditable tab editing is enabled in order to check funding program button count on initial load/tab switch --- .../transit_assets/_accounting_funding_form.html.haml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/views/transit_assets/_accounting_funding_form.html.haml b/app/views/transit_assets/_accounting_funding_form.html.haml index 7aeaa8d..37f7543 100644 --- a/app/views/transit_assets/_accounting_funding_form.html.haml +++ b/app/views/transit_assets/_accounting_funding_form.html.haml @@ -51,7 +51,12 @@ check_add_funding_program_button(); }); - check_add_funding_program_button(); + // check for funding program buttons on edit enabled or tab switched + $('#edit_asset .asset-subform-action').on("change", function() { + if ($('#edit_asset .links a:visible').length > 0) { + check_add_funding_program_button(); + } + }); $('.funding_sources_grant_purchases_form').validate({ ignore: [], From 5ae92f77582c6aa1687f09ddb1a9e84cafd18397 Mon Sep 17 00:00:00 2001 From: aandrade Date: Tue, 8 Oct 2024 18:24:24 -0400 Subject: [PATCH 2/2] Update version.rb for hotfix --- lib/transam_accounting/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/transam_accounting/version.rb b/lib/transam_accounting/version.rb index c01e0bf..a35bcdf 100644 --- a/lib/transam_accounting/version.rb +++ b/lib/transam_accounting/version.rb @@ -1,3 +1,3 @@ module TransamAccounting - VERSION = "2.47.0" + VERSION = "2.47.1-rc1" end