]> _ Git - cubist_cms-back.git/commitdiff
wait #4831 @7
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 26 Oct 2021 13:43:24 +0000 (15:43 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 26 Oct 2021 13:43:24 +0000 (15:43 +0200)
src/public/bunchmultiple/bunchmultiple.js

index 5c187ff21b7ee9019ba2c228689ecea597b35ba5..267afac265016b73aa5ec418de2a15286fe78dde 100644 (file)
@@ -57,7 +57,8 @@
                 return true;
             });
 
-            this.element.on('change', '.bunchmultiple', function () {
+            $(this.element).on('change', '.bunchmultiple .hiddenfield', function () {
+                console.log('change from above');
                 $this.update();
                 return true;
             });
             setTimeout(function () {
                 $this.updateAndChange();
             }, 250);
-            $this.updateAndChange();
+            this.updateAndChange();
         },
 
         updateAndChange: function () {
+            console.log('updateAndChange',this);
             this.update();
-            $(this).trigger('change');
+            $(this).find('.hiddenfield').trigger('change');
         },
 
         initItem: function (values) {
-            console.log('initItem', values);
             var $this = this;
             var collapsed = true;
             var isNew = false;