]> _ Git - sandvik-apps.git/commitdiff
wip #4871 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 7 Feb 2022 18:10:58 +0000 (19:10 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 7 Feb 2022 18:10:58 +0000 (19:10 +0100)
ScreeningMediaSelection/js/script.js

index 3f1a2ea0460da9afe26400d2c44e2a4804d1b015..da0ae0c6dd73ade22c58e78d8fa769521252d507 100644 (file)
@@ -702,7 +702,9 @@ function addField(f, value) {
     $("#fields").append(res);
 
     $(".select3").select3();
-    $("select[data-type=\"select2\"]").select2();
+    $("select[data-type=\"select2\"]").each(function () {
+        $(this).select2({dropdownParent: $(this).parent()});
+    });
 
     addLinkToResult('.res');