Dedicated service or provider selections must not be disabled.

This commit is contained in:
alext 2017-06-11 21:10:53 +02:00
parent a56de244ca
commit 2777be03da

View file

@ -114,10 +114,7 @@ window.FrontendBook = window.FrontendBook || {};
var selectedServiceId = GeneralFunctions.getUrlParameter(location.href, 'service'); var selectedServiceId = GeneralFunctions.getUrlParameter(location.href, 'service');
if (selectedServiceId && $selectService.find('option[value="' + selectedServiceId + '"]').length > 0) { if (selectedServiceId && $selectService.find('option[value="' + selectedServiceId + '"]').length > 0) {
$selectService $selectService.val(selectedServiceId);
.val(selectedServiceId)
.prop('disabled', true)
.css('opacity', '0.5');
} }
$selectService.trigger('change'); // Load the available hours. $selectService.trigger('change'); // Load the available hours.
@ -141,8 +138,6 @@ window.FrontendBook = window.FrontendBook || {};
if (selectedProviderId && $selectProvider.find('option[value="' + selectedProviderId + '"]').length > 0) { if (selectedProviderId && $selectProvider.find('option[value="' + selectedProviderId + '"]').length > 0) {
$selectProvider $selectProvider
.val(selectedProviderId) .val(selectedProviderId)
.prop('disabled', true)
.css('opacity', '0.5')
.trigger('change'); .trigger('change');
} }