Index: lams_bb_integration/web/modules/start_lesson.jsp =================================================================== diff -u -ra861902df1adee65242a8c37adc1463b99aa7dcb -r8af1746d179f41095b074fef269722c6689b39eb --- lams_bb_integration/web/modules/start_lesson.jsp (.../start_lesson.jsp) (revision a861902df1adee65242a8c37adc1463b99aa7dcb) +++ lams_bb_integration/web/modules/start_lesson.jsp (.../start_lesson.jsp) (revision 8af1746d179f41095b074fef269722c6689b39eb) @@ -27,8 +27,17 @@ + + + + + + Start LAMS Lesson + -
+ Start LAMS Lesson + + "> "> @@ -60,8 +69,8 @@
- - + +
@@ -73,22 +82,21 @@ history.go(-1); } - function validateStartLesson() + function confirmSubmit() { - var title = trim(document.getElementById("title").value); - - // valdation - if (title==null||title=="") - { - alert("Lesson must have a name."); - return false; - } + var title = rettrim(document.lesson_form.title.value); + if ((title == "")||(title == null)) + { + alert("The title is empty. Please enter a title for the LAMS sequence."); + return false; + } } - - - + function rettrim(stringToTrim) { + return stringToTrim.replace(/^\s+|\s+$/g,""); + } + //-->