Corrected syntax error in frontend_book.js

This commit is contained in:
alext 2017-11-05 16:31:28 +01:00
parent 7bfff7bfe0
commit d4594bd583

View file

@ -170,12 +170,12 @@ window.FrontendBook = window.FrontendBook || {};
$('#select-provider').empty(); $('#select-provider').empty();
$.each(GlobalVariables.availableProviders, function(indexProvider, provider) { $.each(GlobalVariables.availableProviders, function(indexProvider, provider) {
$.each(provider.services'], function(indexService, serviceId) { $.each(provider.services, function(indexService, serviceId) {
// If the current provider is able to provide the selected service, // If the current provider is able to provide the selected service,
// add him to the listbox. // add him to the listbox.
if (serviceId == currServiceId) { if (serviceId == currServiceId) {
var optionHtml = '<option value="' + provider.id'] + '">' var optionHtml = '<option value="' + provider.id + '">'
+ provider.first_name'] + ' ' + provider.last_name'] + provider.first_name + ' ' + provider.last_name
+ '</option>'; + '</option>';
$('#select-provider').append(optionHtml); $('#select-provider').append(optionHtml);
} }