1
0
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:
Hillel Coren 2017-03-22 22:32:20 +02:00
parent 88d5ca37d8
commit 77b5589522

View File

@ -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);
});