Prepend the "any-provider" option to the booking page so that it is the first option displayed.

This commit is contained in:
Alex Tselegidis 2021-10-18 12:19:13 +02:00
parent 03f5fed5a6
commit 8d4d063afa

View file

@ -233,7 +233,7 @@ window.FrontendBook = window.FrontendBook || {};
// Add the "Any Provider" entry. // Add the "Any Provider" entry.
if ($('#select-provider option').length >= 1 && GlobalVariables.displayAnyProvider === '1') { if ($('#select-provider option').length >= 1 && GlobalVariables.displayAnyProvider === '1') {
$('#select-provider').append(new Option('- ' + EALang.any_provider + ' -', 'any-provider', true, true)); $('#select-provider').prepend(new Option('- ' + EALang.any_provider + ' -', 'any-provider', true, true));
} }
FrontendBookApi.getUnavailableDates($('#select-provider').val(), $(this).val(), FrontendBookApi.getUnavailableDates($('#select-provider').val(), $(this).val(),