The display-selected-service and display-selected-provider elements will be invisible by default.

This commit is contained in:
Alex Tselegidis 2022-01-24 21:05:43 +01:00
parent 442c644c01
commit ab4e404fac
2 changed files with 10 additions and 4 deletions

View file

@ -15,10 +15,10 @@
</span> </span>
<div class="d-flex justify-content-center justify-content-md-start"> <div class="d-flex justify-content-center justify-content-md-start">
<span class="display-selected-service me-2"> <span class="display-selected-service me-2 invisible">
[<?= lang('service') ?>] [<?= lang('service') ?>]
</span> </span>
<span class="display-selected-provider"> <span class="display-selected-provider invisible">
[<?= lang('provider') ?>] [<?= lang('provider') ?>]
</span> </span>
</div> </div>

View file

@ -600,9 +600,15 @@ App.Pages.Booking = (function () {
} }
}); });
$(document).find('.display-selected-service').text($selectService.find('option:selected').text()); $(document)
.find('.display-selected-service')
.text($selectService.find('option:selected').text())
.removeClass('invisible');
$(document).find('.display-selected-provider').text($selectProvider.find('option:selected').text()); $(document)
.find('.display-selected-provider')
.text($selectProvider.find('option:selected').text())
.removeClass('invisible');
$('#appointment-details').empty(); $('#appointment-details').empty();