From f9bed9264f05b1646569f4f5c9b46e5cfec98c1d Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 2 Feb 2017 19:11:10 -0800 Subject: [PATCH] Removed oops state if model has no fields --- resources/views/hardware/edit.blade.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/resources/views/hardware/edit.blade.php b/resources/views/hardware/edit.blade.php index 7d353ac17d..c83a42abf9 100755 --- a/resources/views/hardware/edit.blade.php +++ b/resources/views/hardware/edit.blade.php @@ -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'); } }); }