]> _ Git - cubist_cms-back.git/commitdiff
wip #4285 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 19 May 2022 13:11:17 +0000 (15:11 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 19 May 2022 13:11:17 +0000 (15:11 +0200)
src/app/Magic/Fields/KeyValueBunchOfFieldsMultiple.php [new file with mode: 0644]
src/resources/views/fields/select2_from_array.blade.php

diff --git a/src/app/Magic/Fields/KeyValueBunchOfFieldsMultiple.php b/src/app/Magic/Fields/KeyValueBunchOfFieldsMultiple.php
new file mode 100644 (file)
index 0000000..f288c29
--- /dev/null
@@ -0,0 +1,8 @@
+<?php
+
+namespace Cubist\Backpack\Magic\Fields;
+
+class KeyValueBunchOfFieldsMultiple extends BunchOfFieldsMultiple
+{
+
+}
index bd15618c023b09c79bdaf6ab7a4f5a4d0dd45935..a34b3c4c2fd84709e37e4c1c43b8d993b9c15b0b 100644 (file)
@@ -98,13 +98,13 @@ if($ajax){
                             return;
                         }
                         var options = {
-                            theme: "bootstrap"
+                            theme: "bootstrap",
                         };
                         if ($(this).is('[data-ajax]')) {
                             options.ajax = {
                                 url: '{{backpack_url('select2')}}' + '/' + $(this).data('ajax'),
                                 dataType: 'json',
-                                delay: 500,
+                                delay: 250,
                             };
                         }
                         $(obj).addClass('init').select2(options);