Index: lams_tool_assessment/web/pages/learning/learning.jsp =================================================================== diff -u -r59d41e00dc903011eb31f69c3b85b0b4f958c593 -r7e2d9c11d1f1f8f5f28ec9f5a60f96294a48fafd --- lams_tool_assessment/web/pages/learning/learning.jsp (.../learning.jsp) (revision 59d41e00dc903011eb31f69c3b85b0b4f958c593) +++ lams_tool_assessment/web/pages/learning/learning.jsp (.../learning.jsp) (revision 7e2d9c11d1f1f8f5f28ec9f5a60f96294a48fafd) @@ -271,10 +271,10 @@ this.value = ((ckeditorData == null) || (ckeditorData.replace(/ | |
|\s|

|<\/p>|\xa0/g, "").length == 0)) ? "" : ckeditorData; }); + + // copy value from lams:textarea (only available in essay and mark hedging type of questions) to hidden input before ajax submit - $("textarea[id^='essay-question'], textarea[id^='justification-question']").each(function() { - filterData(this, document.getElementById(this.name.split('_')[0] + '__lamshidden')); - }); + $("textarea[name$=__textarea]").change(); //ajax form submit $('#answers').ajaxSubmit({ @@ -322,9 +322,7 @@ disableButtons(); // copy value from lams:textarea (only available in essay and mark hedging type of questions) to hidden input before submit - $("textarea[id^='essay-question'], textarea[id^='justification-question']").each(function() { - filterData(this, document.getElementById(this.name.split('_')[0] + '__lamshidden')); - }); + $("textarea[name$=__textarea]").change(); var myForm = $("#answers"); myForm.attr("action", "&isTimelimitExpired=" + isTimelimitExpired);