Removed oops state if model has no fields

This commit is contained in:
snipe 2017-02-02 19:11:10 -08:00
parent ca490fd129
commit f9bed9264f

View file

@ -175,13 +175,10 @@
"X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr('content')
},
_token: "{{ csrf_token() }}",
dataType: 'json',
dataType: 'html',
success: function (data) {
data: data,
$('#custom_fields_content').html(data);
},
error: function (data) {
alert('oops');
}
});
}