diff --git a/config/javascript.php b/config/javascript.php index 1c2ef82dc..1aeb222e0 100644 --- a/config/javascript.php +++ b/config/javascript.php @@ -14,8 +14,7 @@ return [ | */ 'bind_js_vars_to_this_view' => [ - 'layouts.master', - 'layouts.admin', + 'layouts.scripts', ], /* diff --git a/resources/themes/pterodactyl/layouts/admin.blade.php b/resources/themes/pterodactyl/layouts/admin.blade.php index f3a7920b8..910b50bcf 100644 --- a/resources/themes/pterodactyl/layouts/admin.blade.php +++ b/resources/themes/pterodactyl/layouts/admin.blade.php @@ -26,7 +26,6 @@ - @@ -36,6 +35,8 @@ + @include('layouts.scripts') + @section('scripts') {!! Theme::css('vendor/select2/select2.min.css') !!} {!! Theme::css('vendor/bootstrap/bootstrap.min.css') !!} @@ -75,13 +76,13 @@