Index: lams_tool_chat/src/java/org/lamsfoundation/lams/tool/chat/web/controller/LearningController.java =================================================================== diff -u -r561bb65551f1a629adc974c1fb2d48e42e764115 -rc7da4cc1741df96dcdf19d62846e95f7e9ddf870 --- lams_tool_chat/src/java/org/lamsfoundation/lams/tool/chat/web/controller/LearningController.java (.../LearningController.java) (revision 561bb65551f1a629adc974c1fb2d48e42e764115) +++ lams_tool_chat/src/java/org/lamsfoundation/lams/tool/chat/web/controller/LearningController.java (.../LearningController.java) (revision c7da4cc1741df96dcdf19d62846e95f7e9ddf870) @@ -108,19 +108,17 @@ } request.setAttribute("chatUserDTO", chatUserDTO); - // Ensure that the content is use flag is set. + // Ensure that the content is use flag is set if (!chat.isContentInUse()) { chat.setContentInUse(true); chatService.saveOrUpdateChat(chat); } request.setAttribute(AttributeNames.ATTR_IS_LAST_ACTIVITY, chatService.isLastActivity(toolSessionID)); - /* Check if submission deadline is null */ - + // Check if submission deadline is null Date submissionDeadline = chatDTO.getSubmissionDeadline(); request.setAttribute("chatDTO", chatDTO); - if (submissionDeadline != null) { HttpSession ss = SessionManager.getSession(); @@ -134,20 +132,17 @@ if (currentLearnerDate.after(tzSubmissionDeadline)) { return "pages/learning/submissionDeadline"; } - } return "pages/learning/learning"; } @RequestMapping("/finishActivity") - public String finishActivity(@ModelAttribute LearningForm learningForm, HttpServletRequest request, - HttpServletResponse response) { + public void finishActivity(@ModelAttribute LearningForm learningForm, HttpServletResponse response) { Long userUid = learningForm.getChatUserUID(); - String nextActivityUrl; try { - nextActivityUrl = chatService.finishToolSession(userUid); + String nextActivityUrl = chatService.finishToolSession(userUid); response.sendRedirect(nextActivityUrl); } catch (DataMissingException e) { throw new ChatException(e); @@ -156,8 +151,6 @@ } catch (IOException e) { throw new ChatException(e); } - - return null; // TODO need to return proper page. } @RequestMapping("/openNotebook") @@ -185,11 +178,9 @@ } @RequestMapping("/submitReflection") - public String submitReflection(@ModelAttribute LearningForm learningForm, HttpServletRequest request, - HttpServletResponse response) { + public void submitReflection(@ModelAttribute LearningForm learningForm, HttpServletResponse response) { // save the reflection entry and call the notebook. - ChatUser chatUser = chatService.getUserByUID(learningForm.getChatUserUID()); Long toolSessionID = chatUser.getChatSession().getSessionId(); Integer userID = chatUser.getUserId().intValue(); @@ -209,7 +200,7 @@ chatService.updateEntry(entry); } - return finishActivity(learningForm, request, response); + finishActivity(learningForm, response); } private ChatUser getCurrentUser(Long toolSessionId) { Index: lams_tool_chat/web/includes/css/chat.scss =================================================================== diff -u -r7475d08afc280b5e2e5ddf04e8bf35e3166aaf80 -rc7da4cc1741df96dcdf19d62846e95f7e9ddf870 --- lams_tool_chat/web/includes/css/chat.scss (.../chat.scss) (revision 7475d08afc280b5e2e5ddf04e8bf35e3166aaf80) +++ lams_tool_chat/web/includes/css/chat.scss (.../chat.scss) (revision c7da4cc1741df96dcdf19d62846e95f7e9ddf870) @@ -60,8 +60,8 @@ padding: 2px; } -#roster div { - margin-right: 5px; +.unselected div:first-child, .selected div:first-child { + margin-right: 10px; } #roster span { @@ -83,17 +83,18 @@ #sendMessageButton { width: 100%; } - + +#roster>div { + line-height: 35px; +} +#roster.mode-teacher>div { + cursor: pointer; +} .selected { background-color: $gray-lightest; - padding: 2px; - cursor: pointer; } - .unselected { background-color: white; - padding: 2px; - cursor: pointer; } /* ================== MONITORING ================== */ Fisheye: Tag c7da4cc1741df96dcdf19d62846e95f7e9ddf870 refers to a dead (removed) revision in file `lams_tool_chat/web/pages/learning/headItems.jsp'. Fisheye: No comparison available. Pass `N' to diff? Index: lams_tool_chat/web/pages/learning/learning.jsp =================================================================== diff -u -rbc8213e12c4e5afddd0394ad66386ef3e70d1611 -rc7da4cc1741df96dcdf19d62846e95f7e9ddf870 --- lams_tool_chat/web/pages/learning/learning.jsp (.../learning.jsp) (revision bc8213e12c4e5afddd0394ad66386ef3e70d1611) +++ lams_tool_chat/web/pages/learning/learning.jsp (.../learning.jsp) (revision c7da4cc1741df96dcdf19d62846e95f7e9ddf870) @@ -1,108 +1,158 @@ - <%@ include file="/common/taglibs.jsp"%> + + - + + + + - - - - - - - - + function disableFinishButton() { + var finishButton = document.getElementById("finishButton"); + if (finishButton != null) { + finishButton.disabled = true; + } + } + function submitForm(metodName){ + var f = document.getElementById("learningForm"); + f.submit(); + } - - - -
- -
+ var MODE = "${MODE}", + TOOL_SESSION_ID = '', + APP_URL = '', + LEARNING_ACTION = ""; + + + + +
+
+ +
- + + + + + + + + + + + + + - - - - - - - - - - - - - + + + + + + + + + - + +
+
+
+
+
+
+
+
- - - - - - - -
-
- - - +
-
-
+
+
+ +   + + + + +
-
-
-
- -
-
-
- -   -
+ + + +
+
+
+ +
- - - -
-
-
- -
+
+
+
-
-
- -
-
- +
+ - - <%@ include file="parts/finishButton.jsp"%> - - - + +
+ - - \ No newline at end of file + +
+ +
+
+ +
+ + + + + + + + + + + + + + + +
+ +
+
+ \ No newline at end of file Index: lams_tool_chat/web/pages/learning/notebook.jsp =================================================================== diff -u -rbc8213e12c4e5afddd0394ad66386ef3e70d1611 -rc7da4cc1741df96dcdf19d62846e95f7e9ddf870 --- lams_tool_chat/web/pages/learning/notebook.jsp (.../notebook.jsp) (revision bc8213e12c4e5afddd0394ad66386ef3e70d1611) +++ lams_tool_chat/web/pages/learning/notebook.jsp (.../notebook.jsp) (revision c7da4cc1741df96dcdf19d62846e95f7e9ddf870) @@ -1,73 +1,15 @@ - <%@ include file="/common/taglibs.jsp"%> - - - - - - - - <fmt:message key="activity.title" /> - - - - - - - - - - + - - - - - - -
- -
- - - - - - - - - - - - - - -
-
- - - - - - - -
Fisheye: Tag c7da4cc1741df96dcdf19d62846e95f7e9ddf870 refers to a dead (removed) revision in file `lams_tool_chat/web/pages/learning/parts/finishButton.jsp'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag c7da4cc1741df96dcdf19d62846e95f7e9ddf870 refers to a dead (removed) revision in file `lams_tool_chat/web/pages/monitoring/new chat.jsp'. Fisheye: No comparison available. Pass `N' to diff?