mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-12-26 00:23:33 +03:00
Do not display a message if there's no content
This commit is contained in:
parent
0564ded317
commit
09711853a6
1 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,7 @@ window.App = (function () {
|
|||
response = {message: jqXHR.responseText}; // String response
|
||||
}
|
||||
|
||||
if (!response) {
|
||||
if (!response || !response.message) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -37,7 +37,7 @@ window.App = (function () {
|
|||
'html': [
|
||||
$('<div/>', {
|
||||
'class': 'card-body',
|
||||
'html': response.message || '→ No error information provided.'
|
||||
'html': response.message
|
||||
})
|
||||
]
|
||||
}).appendTo('#message-box');
|
||||
|
|
Loading…
Reference in a new issue