mirror of
https://github.com/processwire/processwire.git
synced 2025-08-12 09:44:38 +02:00
Various minor adjustments
This commit is contained in:
@@ -249,7 +249,7 @@ class InputfieldForm extends InputfieldWrapper {
|
|||||||
|
|
||||||
if($name == '1') {
|
if($name == '1') {
|
||||||
$numFieldsMatched++;
|
$numFieldsMatched++;
|
||||||
} else if($this->selectorMatchesInputfield($selector, $name, 'showIf')) {
|
} else if($this->selectorMatchesInputfield($selector, $name, "'showIf' from '$child->label'")) {
|
||||||
$numFieldsMatched++;
|
$numFieldsMatched++;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -310,7 +310,6 @@ class InputfieldForm extends InputfieldWrapper {
|
|||||||
*
|
*
|
||||||
* @param WireInputData $input
|
* @param WireInputData $input
|
||||||
* @param array|Inputfield[] $delayedChildren
|
* @param array|Inputfield[] $delayedChildren
|
||||||
* @return bool
|
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
protected function processInputRequiredIf(WireInputData $input, array $delayedChildren) {
|
protected function processInputRequiredIf(WireInputData $input, array $delayedChildren) {
|
||||||
|
@@ -225,7 +225,7 @@ class InputfieldPage extends Inputfield implements ConfigurableModule {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if($page->wire('pages')->cloning) {
|
if($page->wire('pages')->cloning) {
|
||||||
return true; // bypass check when clong is active
|
return true; // bypass check when cloning is active
|
||||||
}
|
}
|
||||||
|
|
||||||
$valid = true;
|
$valid = true;
|
||||||
|
@@ -436,7 +436,7 @@ function InputfieldDependencies($target) {
|
|||||||
consoleLog('Determined that field "' + fieldNameToShow + '" should be visible.');
|
consoleLog('Determined that field "' + fieldNameToShow + '" should be visible.');
|
||||||
if($fieldToShow.is('.InputfieldStateHidden')) {
|
if($fieldToShow.is('.InputfieldStateHidden')) {
|
||||||
// field is hidden so show/fade in
|
// field is hidden so show/fade in
|
||||||
$fieldToShow.removeClass('InputfieldStateHidden').fadeIn();
|
$fieldToShow.removeClass('InputfieldStateHidden').show(); // fadeIn();
|
||||||
$(document).trigger('showInputfield', $fieldToShow);
|
$(document).trigger('showInputfield', $fieldToShow);
|
||||||
numVisibilityChanges++;
|
numVisibilityChanges++;
|
||||||
consoleLog('Field is now visible.');
|
consoleLog('Field is now visible.');
|
||||||
|
File diff suppressed because one or more lines are too long
@@ -483,4 +483,8 @@ if(typeof ProcessWire != "undefined") {
|
|||||||
callback: func
|
callback: func
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
|
|
||||||
|
ProcessWire.entities = function(str) {
|
||||||
|
return $('<textarea />').text(str).html();
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
2
wire/templates-admin/scripts/main.min.js
vendored
2
wire/templates-admin/scripts/main.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user