Index: lams_tool_laqa/web/learning/mobile/AnswersContent.jsp =================================================================== diff -u -r25a7a499068e69269ac293b43893da584f2c6dc0 -rc41e91de9fac7121b8f7c7f7f72193f5edd13a31 --- lams_tool_laqa/web/learning/mobile/AnswersContent.jsp (.../AnswersContent.jsp) (revision 25a7a499068e69269ac293b43893da584f2c6dc0) +++ lams_tool_laqa/web/learning/mobile/AnswersContent.jsp (.../AnswersContent.jsp) (revision c41e91de9fac7121b8f7c7f7f72193f5edd13a31) @@ -82,7 +82,7 @@ jQuery(".text-area").each(function() { if (jQuery.trim($(this).val()) == "") { if (confirm("")) { - doSubmit(actionMethod); + doSubmit(); return submit = false; } else { this.focus(); @@ -96,7 +96,7 @@ return submit; } - function doSubmit(actionMethod) { + function doSubmit() { document.QaLearningForm.submit(); } @@ -151,8 +151,7 @@ e.preventDefault(); if (validateForm()) { - //run an AJAX post request - $.post($this.attr('action'), $this.serialize()); + doSubmit(); } else { return false; }