fix roles
This commit is contained in:
@@ -5,6 +5,23 @@
|
||||
@push('js')
|
||||
<script src="{!! mix('/plugins/select2/select2.full.min.js', '/assets/vendor/boilerplate') !!}"></script>
|
||||
<script src="{!! mix('/plugins/select2/i18n/'.App::getLocale().'.js', '/assets/vendor/boilerplate') !!}"></script>
|
||||
<script>$.extend(true,$.fn.select2.defaults,{language:'{{ App::getLocale()}}',direction:'@lang('boilerplate::layout.direction')'});$(document).on('select2:open',(e)=>{let t = $(e.target);if(t && t.length){let id=t[0].id||t[0].name;document.querySelector(`input[aria-controls*='${id}']`).focus();}});</script>
|
||||
@component('boilerplate::minify')
|
||||
<script>
|
||||
registerAsset('select2', () => {
|
||||
$.extend(true,$.fn.select2.defaults,{
|
||||
language:'{{ App::getLocale()}}',
|
||||
direction:'@lang('boilerplate::layout.direction')'}
|
||||
);
|
||||
|
||||
$(document).on('select2:open',(e) => {
|
||||
let t = $(e.target);
|
||||
if(t && t.length) {
|
||||
let id=t[0].id||t[0].name;
|
||||
document.querySelector(`input[aria-controls*='${id}']`).focus();
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endcomponent
|
||||
@endpush
|
||||
@endonce
|
||||
Reference in New Issue
Block a user