mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
issue-547 radio button group display fix
This commit is contained in:
parent
bb000ca893
commit
ba39031426
@ -503,7 +503,7 @@ class UserDefinedForm_Controller extends Page_Controller
|
|||||||
$expression = '$(this).prop("checked")';
|
$expression = '$(this).prop("checked")';
|
||||||
} elseif ($radioField) {
|
} elseif ($radioField) {
|
||||||
// We cannot simply get the value of the radio group, we need to find the checked option first.
|
// We cannot simply get the value of the radio group, we need to find the checked option first.
|
||||||
$expression = '$(this).parents(".field, .control-group").find("input:checked").val()=="'. $rule->FieldValue .'"';
|
$expression = '$(this).closest(".field, .control-group").find("input:checked").val()=="'. $rule->FieldValue .'"';
|
||||||
} else {
|
} else {
|
||||||
$expression = '$(this).val() == "'. $rule->FieldValue .'"';
|
$expression = '$(this).val() == "'. $rule->FieldValue .'"';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user