mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 19:34:39 -04:00
Working on tests
This commit is contained in:
parent
c016639016
commit
7159dd13ce
@ -1429,7 +1429,7 @@
|
|||||||
$('#saveButton, #emailButton, #draftButton').attr('disabled', true);
|
$('#saveButton, #emailButton, #draftButton').attr('disabled', true);
|
||||||
// if save fails ensure user can try again
|
// if save fails ensure user can try again
|
||||||
$.post('{{ url($url) }}', $('.main-form').serialize(), function(data) {
|
$.post('{{ url($url) }}', $('.main-form').serialize(), function(data) {
|
||||||
if (data && data.startsWith('http')) {
|
if (data && data.startsWith && data.startsWith('http')) {
|
||||||
NINJA.formIsChanged = false;
|
NINJA.formIsChanged = false;
|
||||||
location.href = data;
|
location.href = data;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user