mirror of
https://github.com/processwire/processwire.git
synced 2025-08-13 02:04:35 +02:00
Minor improvement to inputfields.js
This commit is contained in:
@@ -1388,6 +1388,13 @@ function InputfieldDependencies($target) {
|
|||||||
if($inputfield.length == 0) consoleLog("Unable to find inputfield by: #wrap_Inputfield_" + f + " :input");
|
if($inputfield.length == 0) consoleLog("Unable to find inputfield by: #wrap_Inputfield_" + f + " :input");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// if the dependency inputfield isn't found, locate its wrapper..
|
||||||
|
if($inputfield.length == 0) {
|
||||||
|
// use any inputs within the wrapper
|
||||||
|
$inputfield = $("#wrap_" + f).find(":input");
|
||||||
|
if($inputfield.length == 0) consoleLog("Unable to find inputfield by: #wrap_" + f + " :input");
|
||||||
|
}
|
||||||
|
|
||||||
// attach change event to dependency inputfield
|
// attach change event to dependency inputfield
|
||||||
if($inputfield.length) {
|
if($inputfield.length) {
|
||||||
consoleLog('Attaching change event for: ' + $inputfield.attr('name'));
|
consoleLog('Attaching change event for: ' + $inputfield.attr('name'));
|
||||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user