]> _ Git - fluidbook-toolbox.git/commitdiff
wait #7498 @0.75
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 25 Apr 2025 11:08:47 +0000 (13:08 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 25 Apr 2025 11:08:47 +0000 (13:08 +0200)
resources/linkeditor-stable/js/linkeditor.form.js

index 0951ed301f92e165832690698f5b264c33963113..673f09d7f2cbc30fb7d274d9e947346acede2c2a 100644 (file)
@@ -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",
             };