Working on tests
This commit is contained in:
parent
c016639016
commit
7159dd13ce
1 changed files with 1 additions and 1 deletions
|
|
@ -1429,7 +1429,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.startsWith('http')) {
|
||||
if (data && data.startsWith && data.startsWith('http')) {
|
||||
NINJA.formIsChanged = false;
|
||||
location.href = data;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue