Only show the any-provider option if there are more than one providers

This commit is contained in:
Alex Tselegidis 2022-03-08 17:01:25 +01:00
parent 95fbbeec27
commit 09444c1b5e

View file

@ -232,7 +232,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').prepend(new Option('- ' + EALang.any_provider + ' -', 'any-provider', true, true)); $('#select-provider').prepend(new Option('- ' + EALang.any_provider + ' -', 'any-provider', true, true));
} }