diff --git a/js/scripts.js b/js/scripts.js index 1ef28519e..cfc1291b0 100644 --- a/js/scripts.js +++ b/js/scripts.js @@ -1373,7 +1373,7 @@ var plugin_formcreator = new function() { .off('click'); $(form).removeAttr('data-submitted'); - if (xhr.responseText == '') { + if (xhr.responseText.trim() == '') { displayAjaxMessageAfterRedirect(); return; }