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:
parent
7c037e28fc
commit
4c26d09145
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user