mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-09 20:52:56 +01:00
Handle uppercase APP_URL
This commit is contained in:
parent
6b8fbce3ea
commit
3f32a14b1a
@ -1483,7 +1483,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.indexOf('http') === 0) {
|
||||
if (data && data.toLowerCase().indexOf('http') === 0) {
|
||||
NINJA.formIsChanged = false;
|
||||
location.href = data;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user