forked from mirrors/easyappointments
Dedicated service or provider selections must not be disabled.
This commit is contained in:
parent
a56de244ca
commit
2777be03da
1 changed files with 1 additions and 6 deletions
|
@ -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');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue