Skip the first booking step when only one service and one provider are available (#349).
This commit is contained in:
parent
ccc503e618
commit
9097a968ca
1 changed files with 4 additions and 1 deletions
|
@ -202,7 +202,10 @@ App.Pages.Booking = (function () {
|
|||
$selectProvider.val(selectedProviderId).trigger('change');
|
||||
}
|
||||
|
||||
if (selectedServiceId && selectedProviderId) {
|
||||
if (
|
||||
(selectedServiceId && selectedProviderId) ||
|
||||
(vars('available_services').length === 1 && vars('available_providers').length === 1)
|
||||
) {
|
||||
$selectService.closest('.wizard-frame').find('.button-next').trigger('click');
|
||||
|
||||
$(document).find('.book-step:first').hide();
|
||||
|
|
Loading…
Reference in a new issue