mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Removed oops state if model has no fields
This commit is contained in:
parent
ca490fd129
commit
f9bed9264f
|
@ -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…
Reference in a new issue