diff --git a/public/js/plugins/minecraft/eula.js b/public/js/plugins/minecraft/eula.js index 2d1e047e5..42b42a800 100644 --- a/public/js/plugins/minecraft/eula.js +++ b/public/js/plugins/minecraft/eula.js @@ -17,9 +17,9 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -$(window).load(function () { +$(document).ready(function () { Socket.on('console', function (data) { - if (data.line.indexOf('You need to agree to the EULA in order to run the server') > -1) { + if (~data.line.indexOf('You need to agree to the EULA in order to run the server')) { swal({ title: 'EULA Acceptance', text: 'By pressing \'I Accept\' below you are indicating your agreement to the Mojang EULA.', diff --git a/resources/themes/pterodactyl/layouts/auth.blade.php b/resources/themes/pterodactyl/layouts/auth.blade.php index 58758f4fa..3e6ea1237 100644 --- a/resources/themes/pterodactyl/layouts/auth.blade.php +++ b/resources/themes/pterodactyl/layouts/auth.blade.php @@ -47,7 +47,7 @@ Copyright © 2015 - {{ date('Y') }} Pterodactyl Software & Design.

- {!! Theme::js('js/vendor/jquery/jquery.min.js') !!} + {!! Theme::js('vendor/jquery/jquery.min.js') !!} {!! Theme::js('vendor/bootstrap/bootstrap.min.js') !!} diff --git a/resources/themes/pterodactyl/layouts/error.blade.php b/resources/themes/pterodactyl/layouts/error.blade.php index fd78fd81e..1e9ab8dda 100644 --- a/resources/themes/pterodactyl/layouts/error.blade.php +++ b/resources/themes/pterodactyl/layouts/error.blade.php @@ -65,7 +65,7 @@ @section('footer-scripts') {!! Theme::js('js/laroute.js') !!} - {!! Theme::js('js/vendor/jquery/jquery.min.js') !!} + {!! Theme::js('vendor/jquery/jquery.min.js') !!} {!! Theme::js('vendor/bootstrap/bootstrap.min.js') !!} {!! Theme::js('vendor/slimscroll/jquery.slimscroll.min.js') !!} {!! Theme::js('vendor/adminlte/app.min.js') !!} diff --git a/resources/themes/pterodactyl/layouts/master.blade.php b/resources/themes/pterodactyl/layouts/master.blade.php index 19b03380f..32a922416 100644 --- a/resources/themes/pterodactyl/layouts/master.blade.php +++ b/resources/themes/pterodactyl/layouts/master.blade.php @@ -274,7 +274,7 @@ @section('footer-scripts') {!! Theme::js('js/laroute.js') !!} - {!! Theme::js('js/vendor/jquery/jquery.min.js') !!} + {!! Theme::js('vendor/jquery/jquery.min.js') !!} {!! Theme::js('vendor/sweetalert/sweetalert.min.js') !!} {!! Theme::js('vendor/bootstrap/bootstrap.min.js') !!} {!! Theme::js('vendor/slimscroll/jquery.slimscroll.min.js') !!}