Index: lams_tool_notebook/web/pages/learning/notebook.jsp
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_notebook/web/pages/learning/notebook.jsp,v
diff -u -r1.30.2.6 -r1.30.2.7
--- lams_tool_notebook/web/pages/learning/notebook.jsp 23 Nov 2016 17:30:39 -0000 1.30.2.6
+++ lams_tool_notebook/web/pages/learning/notebook.jsp 3 Dec 2016 03:39:57 -0000 1.30.2.7
@@ -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 @@
-