Skip to content

Commit

Permalink
Fix checkboxes not being correctly marked as changed when visiting hg…
Browse files Browse the repository at this point in the history
…TrackUi via dialog, refs #34644

(cherry picked from commit ef10e3c)
  • Loading branch information
christopherLee1 authored and jonathancasper committed Oct 17, 2024
1 parent 08cbfee commit 27be30c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/hg/js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -965,14 +965,14 @@ function getAllVars(obj,subtrackName)
var inp = $(obj).find('input');
var sel = $(obj).find('select');
//warn("obj:"+$(obj).attr('id') + " inputs:"+$(inp).length+ " selects:"+$(sel).length);
$(inp).filter('[name]:enabled').each(function (i) {
$(inp).filter(':not([name^="boolshad"]):enabled').each(function (i) {
var name = $(this).attr('name');
var val = $(this).val();
if ($(this).attr('type') === 'checkbox') {
if ($(this).attr('type') === 'checkbox' || $(this).attr('type') === "CHECKBOX") {
name = cgiBooleanShadowPrefix() + name;
val = $(this).attr('checked') ? 1 : 0;
val = $(this).prop('checked') ? 1 : 0;
} else if ($(this).attr('type') === 'radio') {
if (!$(this).attr('checked')) {
if (!$(this).prop('checked')) {
name = undefined;
}
}
Expand Down

0 comments on commit 27be30c

Please sign in to comment.