Revision 4b1225fe
Added by Marek Hulán almost 8 years ago
app/assets/javascripts/compute_resource.js | ||
---|---|---|
}
|
||
function bootable_radio(item){
|
||
var $disabled = $('[id$=_bootable_true]:disabled:checked:visible');
|
||
$('[id$=_bootable_true]').attr('checked', false);
|
||
$('[id$=_bootable_true]').prop('checked', false);
|
||
if ($disabled.length > 0){
|
||
$disabled.attr('checked', true);
|
||
$disabled.prop('checked', true);
|
||
} else {
|
||
$(item).attr('checked', true);
|
||
$(item).prop('checked', true);
|
||
}
|
||
}
|
||
|
Also available in: Unified diff
Fixes #14481 - make bootable radio button checkable