From: Vincent Vanwaelscappel Date: Fri, 25 Apr 2025 11:08:47 +0000 (+0200) Subject: wait #7498 @0.75 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=df7f72203bbea0d77c8a00773289e78512c056b1;p=fluidbook-toolbox.git wait #7498 @0.75 --- diff --git a/resources/linkeditor-stable/js/linkeditor.form.js b/resources/linkeditor-stable/js/linkeditor.form.js index 0951ed301..673f09d7f 100644 --- a/resources/linkeditor-stable/js/linkeditor.form.js +++ b/resources/linkeditor-stable/js/linkeditor.form.js @@ -123,6 +123,10 @@ LinkeditorForm.prototype = { }); }); + + $(document).on('change', '.bunchmultiple', function () { + $this.initSelect2(); + }) }, getCurrentFormUID: function () { @@ -267,9 +271,9 @@ LinkeditorForm.prototype = { container.append(form); this.linkeditor.initTooltips(); - this.initSelect2(); this.initSpectrum(); $(".bunchmultiple").bunchmultiple(); + this.initSelect2(); if ($(link).is('.new')) { @@ -348,6 +352,10 @@ LinkeditorForm.prototype = { initSelect2: function () { // trigger select2 for each untriggered select2 box $('#linkeditor-panel-form .select2_from_array:not(.init)').each(function (i, obj) { + if($(this).closest('.item.sample').length>0){ + return; + } + var options = { theme: "bootstrap", };