mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-09-20 00:11:35 +02:00
Working on tests
This commit is contained in:
parent
88d5ca37d8
commit
77b5589522
@ -1429,12 +1429,16 @@
|
||||
$('#saveButton, #emailButton, #draftButton').attr('disabled', true);
|
||||
// if save fails ensure user can try again
|
||||
$.post('{{ url($url) }}', $('.main-form').serialize(), function(data) {
|
||||
NINJA.formIsChanged = false;
|
||||
location.href = data;
|
||||
/*
|
||||
if (data && data.startsWith && data.startsWith('http')) {
|
||||
NINJA.formIsChanged = false;
|
||||
location.href = data;
|
||||
} else {
|
||||
handleSaveFailed();
|
||||
}
|
||||
*/
|
||||
}).fail(function(data) {
|
||||
handleSaveFailed(data);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user