Improve error reporting
This commit is contained in:
parent
1b415e2472
commit
3686966f19
1 changed files with 4 additions and 2 deletions
|
@ -40,7 +40,9 @@ $(function() {
|
||||||
console.log(element);
|
console.log(element);
|
||||||
console.log(xhr);
|
console.log(xhr);
|
||||||
|
|
||||||
|
if ('string' === typeof response) {
|
||||||
response = response.replace('<br />', '');
|
response = response.replace('<br />', '');
|
||||||
|
}
|
||||||
|
|
||||||
$('body')
|
$('body')
|
||||||
.modal({
|
.modal({
|
||||||
|
@ -61,7 +63,7 @@ $(function() {
|
||||||
console.log(element);
|
console.log(element);
|
||||||
console.log(xhr);
|
console.log(xhr);
|
||||||
|
|
||||||
if (response.startsWith('<br />')) {
|
if ('string' === typeof response) {
|
||||||
response = response.replace('<br />', '');
|
response = response.replace('<br />', '');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue