From 7159dd13ceb3e939d56565bfd365b0d429dcb981 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Wed, 22 Mar 2017 00:40:39 +0200 Subject: [PATCH] Working on tests --- resources/views/invoices/edit.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/invoices/edit.blade.php b/resources/views/invoices/edit.blade.php index 3ccd975ff9d0..a0302406a0fb 100644 --- a/resources/views/invoices/edit.blade.php +++ b/resources/views/invoices/edit.blade.php @@ -1429,7 +1429,7 @@ $('#saveButton, #emailButton, #draftButton').attr('disabled', true); // if save fails ensure user can try again $.post('{{ url($url) }}', $('.main-form').serialize(), function(data) { - if (data && data.startsWith('http')) { + if (data && data.startsWith && data.startsWith('http')) { NINJA.formIsChanged = false; location.href = data; } else {