]> _ Git - cubist_cms-back.git/commitdiff
wait #6607 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 3 Jan 2024 13:29:49 +0000 (14:29 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 3 Jan 2024 13:29:49 +0000 (14:29 +0100)
src/resources/views/when.blade.php

index 1396342ee044ac0e6b51908fd616b83e8900c7c4..4bdb8befc46f99e7230b40ea21525d74a429efdf 100644 (file)
@@ -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;
                         }
                         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;
                         }
 
                 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();