Wait for window load to set the egg
This commit is contained in:
parent
7c037e28fc
commit
4c26d09145
1 changed files with 4 additions and 1 deletions
|
@ -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 a new issue