mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Working on tests
This commit is contained in:
parent
88d5ca37d8
commit
77b5589522
@ -1429,12 +1429,16 @@
|
|||||||
$('#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) {
|
||||||
|
NINJA.formIsChanged = false;
|
||||||
|
location.href = data;
|
||||||
|
/*
|
||||||
if (data && data.startsWith && data.startsWith('http')) {
|
if (data && data.startsWith && data.startsWith('http')) {
|
||||||
NINJA.formIsChanged = false;
|
NINJA.formIsChanged = false;
|
||||||
location.href = data;
|
location.href = data;
|
||||||
} else {
|
} else {
|
||||||
handleSaveFailed();
|
handleSaveFailed();
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}).fail(function(data) {
|
}).fail(function(data) {
|
||||||
handleSaveFailed(data);
|
handleSaveFailed(data);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user