From: Vincent Vanwaelscappel Date: Wed, 3 Jan 2024 13:29:49 +0000 (+0100) Subject: wait #6607 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=0153a5f74e57efbbbf4b09d2d0391f28b7c87430;p=cubist_cms-back.git wait #6607 @0.5 --- diff --git a/src/resources/views/when.blade.php b/src/resources/views/when.blade.php index 1396342..4bdb8be 100644 --- a/src/resources/views/when.blade.php +++ b/src/resources/views/when.blade.php @@ -36,7 +36,6 @@ var e = findCloserInput(element, property); var val; if ($(e).length === 0) { - console.log(property, 'property value not found') match = false; return false; } @@ -62,13 +61,11 @@ var matchproperty = false; $.each(conditions.values, function (k, condition) { if (checkCondition(condition, conditions.operator, val)) { - console.log('match', property, conditions, val); matchproperty = true; order = Math.min(order, condition.order); } }); if (matchproperty === false) { - console.log('not match', property, conditions, val); match = false return false; } @@ -147,9 +144,9 @@ let found; if ($(element).is('form')) { - found = $(element).find('[bp-field-name="' + inputName + '"]').eq(0); + found = $(element).find('[bp-field-name="' + inputName + '"],[data-name="' + inputName + '"]').eq(0); } else { - found = $(element).siblings('[bp-field-name="' + inputName + '"]'); + found = $(element).siblings('[bp-field-name="' + inputName + '"],[data-name="' + inputName + '"]'); } if (found.length === 0) { let parent = $(element).parent();