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

index 267afac265016b73aa5ec418de2a15286fe78dde..c10b8a0836cdae7e7977ecc3ee0fa8b4d42e0662 100644 (file)
                 ',select' + this.bmidselector +
                 ',textarea' + this.bmidselector +
                 ',.dropzone' + this.bmidselector, function () {
-                $this.update();
+                $this.updateAndChange();
                 return true;
             });
 
-            $(this.element).on('change', '.bunchmultiple .hiddenfield', function () {
-                console.log('change from above');
+            $(this.element).on('change', '.bunchmultiple', function () {
                 $this.update();
                 return true;
             });
         },
 
         updateAndChange: function () {
-            console.log('updateAndChange',this);
             this.update();
-            $(this).find('.hiddenfield').trigger('change');
+            $(this.element).trigger('change');
         },
 
         initItem: function (values) {