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