Index: lams_tool_notebook/web/pages/learning/notebook.jsp =================================================================== diff -u -r3ab31f3ef5917107c2982f5ac234c1c677f0dbbd -rb4d253a78711a9173a3966b93bfeb8252cea007e --- lams_tool_notebook/web/pages/learning/notebook.jsp (.../notebook.jsp) (revision 3ab31f3ef5917107c2982f5ac234c1c677f0dbbd) +++ lams_tool_notebook/web/pages/learning/notebook.jsp (.../notebook.jsp) (revision b4d253a78711a9173a3966b93bfeb8252cea007e) @@ -9,30 +9,34 @@ } function textAreaReady() { - document.learningForm.focusedInput.focus(); + + document.learningForm.focusedInput.focus(); + document.getElementById("finishButton").disabled = false; } function submitForm(methodName) { disableFinishButton(); - if (forceResponse =="true" && document.learningForm.focusedInput.value == "") { - if (confirm("message.learner.blank.alertforceResponse")) { - return true; - } else { - // otherwise, focus on the text area - textAreaReady(); - return false; - } - - } else if (forceResponse =="false" && document.learningForm.focusedInput.value == "" && mode == "learner") { - - if (!confirm("message.learner.blank.input")) { - // otherwise, focus on the text area - textAreaReady(); - return false; - } - } + + if (forceResponse =="true" && document.learningForm.focusedInput.value == "") { + if (confirm("message.learner.blank.alertforceResponse")) { + return true; + } else { + // otherwise, focus on the text area + textAreaReady(); + return false; + } + + } else if (forceResponse =="false" && document.learningForm.focusedInput.value == "" && mode == "learner") { + + if (!confirm("message.learner.blank.input")) { + // otherwise, focus on the text area + textAreaReady(); + return false; + } + } + var f = document.getElementById('messageForm'); f.submit(); } @@ -82,7 +86,7 @@ -