mirror of
https://github.com/processwire/processwire.git
synced 2025-08-15 19:24:28 +02:00
Add @Notanotherdotcom PR #96 to allow use of field names with brackets (array) in field dependencies
This commit is contained in:
@@ -221,7 +221,7 @@ function InputfieldDependencies($target) {
|
|||||||
} else if($field.attr('type') == 'radio') {
|
} else if($field.attr('type') == 'radio') {
|
||||||
// radio: one we are looking for is NOT checked, but determine which one is checked
|
// radio: one we are looking for is NOT checked, but determine which one is checked
|
||||||
consoleLog(inputType + " is NOT checked: " + fieldID);
|
consoleLog(inputType + " is NOT checked: " + fieldID);
|
||||||
var $checkedField = $field.closest('form').find("input[name=" + $field.attr('name') + "]:checked");
|
var $checkedField = $field.closest('form').find("input[name=\"" + $field.attr('name') + "\"]:checked");
|
||||||
if($checkedField.length) {
|
if($checkedField.length) {
|
||||||
val = $checkedField.val();
|
val = $checkedField.val();
|
||||||
consoleLog("Checked value is: " + val);
|
consoleLog("Checked value is: " + val);
|
||||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user