Index: lams_tool_laqa/web/learning/mobile/AnswersContent.jsp =================================================================== diff -u -ra4d2bf9b5bfec1e41a95fefd6e8f1a636b8d32c1 -ra527f92ea18d30bf81e96acab1546eeacb5c98c0 --- lams_tool_laqa/web/learning/mobile/AnswersContent.jsp (.../AnswersContent.jsp) (revision a4d2bf9b5bfec1e41a95fefd6e8f1a636b8d32c1) +++ lams_tool_laqa/web/learning/mobile/AnswersContent.jsp (.../AnswersContent.jsp) (revision a527f92ea18d30bf81e96acab1546eeacb5c98c0) @@ -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; }