Compare commits

..

2 Commits

2 changed files with 14 additions and 2 deletions

View File

@ -89,6 +89,18 @@
}); });
</script> </script>
<script type="text/javascript">
$(document).ready(function() {
$('body')
.addClass('sidebar-collapse')
.delay(500)
.queue(function () {
window.dispatchEvent(new Event('resize'));
$(this).dequeue();
});
});
</script>
@if(file_exists('js/custom.js')) @if(file_exists('js/custom.js'))
<!-- Any Custom JS --> <!-- Any Custom JS -->
<script src="{{ asset('js/custom.js') }}"></script> <script src="{{ asset('js/custom.js') }}"></script>

View File

@ -252,7 +252,7 @@ class CustomBladeServiceProvider extends ServiceProvider
$key = $type.':'.$option; $key = $type.':'.$option;
switch ($option) { switch ($option) {
case 'autofocus': case 'autofocus':
$js->put($key,'plugin/select2/fix-autofocus.js'); $js->put($key,'/plugin/select2/fix-autofocus.js');
break; break;
default: default:
@ -308,7 +308,7 @@ class CustomBladeServiceProvider extends ServiceProvider
} }
if ($js->count()) if ($js->count())
$return = $return->merge($js->map(fn($item)=>sprintf('<script type="text/javascript" src="%s">',$item))); $return = $return->merge($js->map(fn($item)=>sprintf('<script type="text/javascript" src="%s"></script>',$item)));
if ($css->count()) if ($css->count())
$return = $return->merge($css->map(fn($item)=>sprintf('<link rel="stylesheet" href="%s">',$item))); $return = $return->merge($css->map(fn($item)=>sprintf('<link rel="stylesheet" href="%s">',$item)));