Corrected syntax error in frontend_book.js
This commit is contained in:
parent
7bfff7bfe0
commit
d4594bd583
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue