mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
Bug #4661: Fix update for radio inputs
(cherry picked from commit 920f3050fa17404927baa8d243abfc4812b67b72)
This commit is contained in:
parent
2537eb8859
commit
e660da555e
@ -76,13 +76,14 @@ define(function(require) {
|
||||
} else { // if (field.is("input")){
|
||||
switch (field.attr("type")){
|
||||
case "radio":
|
||||
var checked = (field.val().toUpperCase() == field_val.toUpperCase());
|
||||
$('input[wizard_field="'+field_name+'"]', context).prop("checked", false);
|
||||
|
||||
field.prop("checked", checked);
|
||||
var input = $('input[wizard_field="'+field_name+'"]', context).filter(function(){
|
||||
return $(this).val().toUpperCase() == field_val.toUpperCase();
|
||||
});
|
||||
|
||||
input.prop("checked", true).change();
|
||||
|
||||
if (checked) {
|
||||
field.change();
|
||||
}
|
||||
break;
|
||||
case "checkbox":
|
||||
var checked = (field.val().toUpperCase() == field_val.toUpperCase());
|
||||
|
Loading…
x
Reference in New Issue
Block a user