From: Vincent Vanwaelscappel Date: Thu, 7 Jul 2022 16:21:15 +0000 (+0200) Subject: wip #4213 @3 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=160d8042486579d81299ad938efacf298d39e374;p=cubist_cms-back.git wip #4213 @3 --- diff --git a/src/public/bunchmultiple/bunchmultiple.js b/src/public/bunchmultiple/bunchmultiple.js index 746dc0e..7bb3884 100644 --- a/src/public/bunchmultiple/bunchmultiple.js +++ b/src/public/bunchmultiple/bunchmultiple.js @@ -261,7 +261,7 @@ $this.setValues(item, values, false); $(document).trigger('cubist.bunchmultiple.added'); $($this).trigger('change'); - }, 500); + }, 10); }, setValues(item, values) { @@ -278,7 +278,7 @@ cb.prop('checked', v === true || v === '1' || v === 1); } else if ($(input).is('.select2_from_array')) { try { - if ($(input).data('ajax')!==null && $(input).find('option[value="' + k + '"]').length === 0) { + if ($(input).data('ajax') !== null && $(input).find('option[value="' + k + '"]').length === 0) { var options = $(input).data('options'); var newOption = new Option(options[v], v, false, false); $(input).append(newOption).trigger('change'); diff --git a/src/resources/views/fields/color.blade.php b/src/resources/views/fields/color.blade.php index 9437d04..a8e0a60 100644 --- a/src/resources/views/fields/color.blade.php +++ b/src/resources/views/fields/color.blade.php @@ -27,16 +27,52 @@ @push('crud_fields_styles') + @endpush {{-- FIELD JS - will be loaded in the after_scripts section --}} @push('crud_fields_scripts') @endpush