From: Vincent Vanwaelscappel Date: Mon, 23 May 2022 13:40:02 +0000 (+0200) Subject: wait #5292 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=d85e0dcd1c87d2ce7ff91f0f510a48e98cef4ec4;p=cubist_cms-back.git wait #5292 @0.5 --- diff --git a/src/public/bunchmultiple/bunchmultiple.js b/src/public/bunchmultiple/bunchmultiple.js index 058e082..1d0a03d 100644 --- a/src/public/bunchmultiple/bunchmultiple.js +++ b/src/public/bunchmultiple/bunchmultiple.js @@ -13,6 +13,10 @@ this.cleanTemplate(); + $(document).on('click', '.nav-link', function () { + $this.resize(); + }); + var initValues = this.element.data('values'); if (initValues.length === 0) { @@ -222,7 +226,7 @@ } // Handle nested multiple bunch var nested = []; - $(item).find('.subform>.bunchmultiple').each(function () { + $(item).find('.subform>.bunchfields>.bunchmultiple').each(function () { var newrand = $this.id + '_' + Math.round(Math.random() * 10000000); var sampleId = $(this).attr('id'); var html = replaceAll(sampleId, newrand, $(this).html()); @@ -290,6 +294,7 @@ jQuery(document).ready(function ($) { $(".bunchmultiple").bunchmultiple(); + }); jQuery.cachedScript = function (url, options) {