mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 17:14:46 +00:00
(mvc) glitch in JS error handling, closes https://github.com/opnsense/core/issues/1163
This commit is contained in:
parent
f7217de593
commit
69d2c462e7
@ -55,7 +55,7 @@
|
||||
});
|
||||
// propagate ajax error messages
|
||||
$( document ).ajaxError(function( event, request ) {
|
||||
if (request.responseJSON.errorMessage != undefined) {
|
||||
if (request.responseJSON != undefined && request.responseJSON.errorMessage != undefined) {
|
||||
BootstrapDialog.show({
|
||||
type: BootstrapDialog.TYPE_DANGER,
|
||||
title: '{{ lang._('An API exception occured') }}',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user