0001-misc-limit-checkbox-js-prefill-to-single-checkbox-fi.patch
wcs/qommon/static/js/qommon.forms.js | ||
---|---|---|
480 | 480 |
if ($(widget).is('.widget-prefilled') || $(widget).is('.widget-readonly') || data.modified_field == 'user') { |
481 | 481 |
// replace text input value |
482 | 482 |
$(widget).find('input[type=text], input[type=tel], input[type=numeric], input[type=email], input[type=date], textarea').val(value.content); |
483 |
// replace checkbox input value |
|
484 |
$(widget).find('input[type=checkbox]').prop('checked', value.content); |
|
483 |
if ($widget.hasClass('CheckboxWidget')) { |
|
484 |
// replace checkbox input value |
|
485 |
$widget.find('input[type=checkbox]').prop('checked', value.content); |
|
486 |
} |
|
485 | 487 |
} |
486 | 488 |
} |
487 | 489 |
}); |
488 |
- |