From: Vincent Vanwaelscappel Date: Thu, 7 Jul 2022 18:27:54 +0000 (+0200) Subject: wip #4213 @1 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=9aec3c3f8c9fa2f65938f1cd3287caa29dd75274;p=cubist_cms-back.git wip #4213 @1 --- diff --git a/src/public/bunchmultiple/bunchmultiple.js b/src/public/bunchmultiple/bunchmultiple.js index 7bb3884..f93f655 100644 --- a/src/public/bunchmultiple/bunchmultiple.js +++ b/src/public/bunchmultiple/bunchmultiple.js @@ -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')) {