forked from mirrors/easyappointments
Hide the service price and provider address if they are empty (#863)
This commit is contained in:
parent
177375e814
commit
88ce8d506a
1 changed files with 4 additions and 4 deletions
|
@ -545,7 +545,7 @@ window.FrontendBook = window.FrontendBook || {};
|
||||||
$('<br/>'),
|
$('<br/>'),
|
||||||
$('<span/>', {
|
$('<span/>', {
|
||||||
'text': $('#select-timezone option:selected').text()
|
'text': $('#select-timezone option:selected').text()
|
||||||
+ ' - ' + servicePrice + ' ' + serviceCurrency
|
+ (servicePrice ? ' - ' + servicePrice + ' ' + serviceCurrency : '')
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
@ -582,15 +582,15 @@ window.FrontendBook = window.FrontendBook || {};
|
||||||
}),
|
}),
|
||||||
$('<br/>'),
|
$('<br/>'),
|
||||||
$('<span/>', {
|
$('<span/>', {
|
||||||
'text': EALang.address + ': ' + address
|
'text': address ? EALang.address + ': ' + address : ''
|
||||||
}),
|
}),
|
||||||
$('<br/>'),
|
$('<br/>'),
|
||||||
$('<span/>', {
|
$('<span/>', {
|
||||||
'text': EALang.city + ': ' + city
|
'text': city ? EALang.city + ': ' + city : ''
|
||||||
}),
|
}),
|
||||||
$('<br/>'),
|
$('<br/>'),
|
||||||
$('<span/>', {
|
$('<span/>', {
|
||||||
'text': EALang.zip_code + ': ' + zipCode
|
'text': zipCode ? EALang.zip_code + ': ' + zipCode : ''
|
||||||
}),
|
}),
|
||||||
$('<br/>'),
|
$('<br/>'),
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue