]> _ Git - cubist_cms-back.git/commitdiff
wip #4213 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 7 Jul 2022 18:27:54 +0000 (20:27 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 7 Jul 2022 18:27:54 +0000 (20:27 +0200)
src/public/bunchmultiple/bunchmultiple.js

index 7bb388495c9d8d4a04b4b20c23dd76724f1ee9dd..f93f6557e7f0cbc0c8fa7e27800c9501abcde166 100644 (file)
@@ -32,6 +32,9 @@
             $(window).on('resize', function () {
                 $this.resize();
             });
+            $(document).on('bunchmultiple.toresize',function(){
+                $this.resize();
+            });
 
 
             this.element.on('click', '.additem' + this.bmidselector, function () {
@@ -45,6 +48,9 @@
             });
 
             this.element.on('click', '.legend' + this.bmidselector, function () {
+                if ($(this).closest('.bunchmultiple_oneline').length > 0) {
+                    return true;
+                }
                 var item = $(this).closest('.item');
                 var subform = item.find('.subform' + this.bmidselector);
                 if (!item.hasClass('collapsed')) {