Working on tests

This commit is contained in:
Hillel Coren 2017-03-22 00:40:39 +02:00
parent c016639016
commit 7159dd13ce

View File

@ -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 {