Removed oops state if model has no fields
This commit is contained in:
parent
ca490fd129
commit
f9bed9264f
1 changed files with 1 additions and 4 deletions
|
@ -175,13 +175,10 @@
|
||||||
"X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr('content')
|
"X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr('content')
|
||||||
},
|
},
|
||||||
_token: "{{ csrf_token() }}",
|
_token: "{{ csrf_token() }}",
|
||||||
dataType: 'json',
|
dataType: 'html',
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
data: data,
|
data: data,
|
||||||
$('#custom_fields_content').html(data);
|
$('#custom_fields_content').html(data);
|
||||||
},
|
|
||||||
error: function (data) {
|
|
||||||
alert('oops');
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue