From 2e2ef63bf6648d366761bb7afc5381b333db966f Mon Sep 17 00:00:00 2001 From: TheWitness Date: Sun, 19 Nov 2023 16:35:30 -0500 Subject: [PATCH] QA: Properly reselect template rows * This happens when you go forward, and then backward to the template page. --- install/install.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/install/install.js b/install/install.js index 24f53fa9e9..0ea04342f9 100644 --- a/install/install.js +++ b/install/install.js @@ -203,7 +203,7 @@ function getFieldData(fields, fieldData) { } $('input[name^="' + prefix + '"]').each(function(index,element) { - fieldData[element.id] =$(element).is(':checked'); + fieldData[element.id] = $(element).is(':checked'); }); } } else { @@ -722,6 +722,13 @@ function performStep(installStep, suppressRefresh, forceReload) { processStepComplete(data.Step, data.StepData); } + $('input[id^="chk_template"]').each(function() { + if ($(this).is(':checked')) { + console.log('checked'); + $(this).closest('tr').addClass('selected'); + } + }); + $(function () { var focusedElement; $(document).on('focus', 'input', function () {