Skip to content

Commit

Permalink
QA: Properly reselect template rows
Browse files Browse the repository at this point in the history
* This happens when you go forward, and then backward to the template page.
  • Loading branch information
TheWitness committed Nov 19, 2023
1 parent 991eca8 commit 2e2ef63
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion install/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 () {
Expand Down

0 comments on commit 2e2ef63

Please sign in to comment.