1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-11-23 09:32:29 +01:00

Wait for window load to set the egg

This commit is contained in:
Dane Everitt 2018-03-08 21:33:44 -06:00
parent 7c037e28fc
commit 4c26d09145
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

@ -133,6 +133,9 @@
@parent
{!! Theme::js('vendor/lodash/lodash.js') !!}
<script>
$(window).on('load', function () {
$('#pNestId').change();
});
$(document).ready(function () {
$('#pPackId').select2({placeholder: 'Select a Service Pack'});
$('#pNestId').select2({placeholder: 'Select a Nest'}).on('change', function () {
@ -150,7 +153,7 @@
}
$('#pEggId').change();
}).change();
});
$('#pEggId').select2({placeholder: 'Select a Nest Egg'}).on('change', function () {
var selectedEgg = _.isNull($(this).val()) ? $(this).find('option').first().val() : $(this).val();