]> _ Git - cubist_cms-back.git/commitdiff
wait #4213 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 8 Jul 2022 16:30:55 +0000 (18:30 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 8 Jul 2022 16:30:55 +0000 (18:30 +0200)
src/public/bunchmultiple/bunchmultiple.js

index f93f6557e7f0cbc0c8fa7e27800c9501abcde166..f461a674101b500426ae695d9dacd61cfcb983ca 100644 (file)
@@ -32,7 +32,7 @@
             $(window).on('resize', function () {
                 $this.resize();
             });
-            $(document).on('bunchmultiple.toresize',function(){
+            $(document).on('bunchmultiple.toresize', function () {
                 $this.resize();
             });
 
             var id = this.element.attr('id');
             var selector = '.item' + this.bmidselector + ':not(.sample) ' + this.bmidselector + '>.bunchfields';
             var list = this.element.find(selector);
+            if (list.length === 0) {
+                selector = '.item' + this.bmidselector + ':not(.sample) ' + this.bmidselector + '>.legendsize>.bunchfields';
+                list = this.element.find(selector);
+            }
 
             $.each(list, function () {
                 $(this).find('.bunchmultiple').each(function () {