Index: lams_tool_laqa/web/learning/mobile/AnswersContent.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_laqa/web/learning/mobile/AnswersContent.jsp,v diff -u -r1.5.2.6 -r1.5.2.7 --- lams_tool_laqa/web/learning/mobile/AnswersContent.jsp 3 Jul 2015 16:47:00 -0000 1.5.2.6 +++ lams_tool_laqa/web/learning/mobile/AnswersContent.jsp 31 Jul 2015 06:10:10 -0000 1.5.2.7 @@ -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; }