Skip to content

Commit 4c26d09

Browse files
committed
Wait for window load to set the egg
1 parent 7c037e2 commit 4c26d09

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

resources/themes/pterodactyl/admin/servers/view/startup.blade.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@
133133
@parent
134134
{!! Theme::js('vendor/lodash/lodash.js') !!}
135135
<script>
136+
$(window).on('load', function () {
137+
$('#pNestId').change();
138+
});
136139
$(document).ready(function () {
137140
$('#pPackId').select2({placeholder: 'Select a Service Pack'});
138141
$('#pNestId').select2({placeholder: 'Select a Nest'}).on('change', function () {
@@ -150,7 +153,7 @@
150153
}
151154
152155
$('#pEggId').change();
153-
}).change();
156+
});
154157
155158
$('#pEggId').select2({placeholder: 'Select a Nest Egg'}).on('change', function () {
156159
var selectedEgg = _.isNull($(this).val()) ? $(this).find('option').first().val() : $(this).val();

0 commit comments

Comments
 (0)