From 52c506b1339d1eb82bfeaae130f9b680a0a94205 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sun, 10 Jan 2016 16:56:23 -0500 Subject: [PATCH] For whatever reason event.submit() decided to not work after preventDefault() --- resources/views/admin/servers/view.blade.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/resources/views/admin/servers/view.blade.php b/resources/views/admin/servers/view.blade.php index a154e3046..5fb31d6db 100644 --- a/resources/views/admin/servers/view.blade.php +++ b/resources/views/admin/servers/view.blade.php @@ -330,10 +330,8 @@ $(document).ready(function () { confirmButtonText: 'Delete', confirmButtonColor: '#d9534f', closeOnConfirm: false - }, function (confirmed) { - if (confirmed) { - event.submit(); - } + }, function () { + event.target.submit(); }); }); });