mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-25 09:23:08 +03:00
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/>'),
|
||||
$('<span/>', {
|
||||
'text': $('#select-timezone option:selected').text()
|
||||
+ ' - ' + servicePrice + ' ' + serviceCurrency
|
||||
+ (servicePrice ? ' - ' + servicePrice + ' ' + serviceCurrency : '')
|
||||
})
|
||||
]
|
||||
})
|
||||
|
@ -582,15 +582,15 @@ window.FrontendBook = window.FrontendBook || {};
|
|||
}),
|
||||
$('<br/>'),
|
||||
$('<span/>', {
|
||||
'text': EALang.address + ': ' + address
|
||||
'text': address ? EALang.address + ': ' + address : ''
|
||||
}),
|
||||
$('<br/>'),
|
||||
$('<span/>', {
|
||||
'text': EALang.city + ': ' + city
|
||||
'text': city ? EALang.city + ': ' + city : ''
|
||||
}),
|
||||
$('<br/>'),
|
||||
$('<span/>', {
|
||||
'text': EALang.zip_code + ': ' + zipCode
|
||||
'text': zipCode ? EALang.zip_code + ': ' + zipCode : ''
|
||||
}),
|
||||
$('<br/>'),
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue