Index: lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/web/MonitoringAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/web/MonitoringAction.java,v diff -u -r1.103 -r1.104 --- lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/web/MonitoringAction.java 17 Sep 2013 16:23:08 -0000 1.103 +++ lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/web/MonitoringAction.java 11 Oct 2013 12:07:00 -0000 1.104 @@ -1072,10 +1072,6 @@ currentActivity))) { JSONObject learnerJSON = WebUtil.userToJSON(learner); Long currentActivityId = currentActivity.getActivityId(); - // monitoring URL for the given learner - String learnerUrl = monitoringService.getLearnerActivityURL(lessonId, currentActivityId, - learner.getUserId(), monitorUserId); - learnerJSON.put("url", learnerUrl); Activity parentActivity = currentActivity.getParentActivity(); Long targetActivityId = (branchingActivityId != null) || (parentActivity == null) @@ -1319,7 +1315,9 @@ IMonitoringService monitoringService = MonitoringServiceProxy.getMonitoringService(getServlet() .getServletContext()); // URL in monitor mode - url = monitoringService.getLearnerActivityURL(lessonId, activity.getActivityId(), learnerId, monitorId); + url = Configuration.get(ConfigurationKeys.SERVER_URL) + + "monitoring/monitoring.do?method=getLearnerActivityURL&lessonID=" + lessonId + "&activityID=" + + activity.getActivityId() + "&userID=" + learnerId; } if (url != null) { @@ -1328,7 +1326,7 @@ } String serverUrl = Configuration.get(ConfigurationKeys.SERVER_URL); if (!url.startsWith(serverUrl)) { - // monitor mode URLs should be prepended with serve URL + // monitor mode URLs should be prepended with server URL url = serverUrl + url; } activityJSON.put("url", url); Index: lams_monitoring/web/css/monitorLesson.css =================================================================== RCS file: /usr/local/cvsroot/lams_monitoring/web/css/monitorLesson.css,v diff -u -r1.13 -r1.14 --- lams_monitoring/web/css/monitorLesson.css 27 Aug 2013 16:15:14 -0000 1.13 +++ lams_monitoring/web/css/monitorLesson.css 11 Oct 2013 12:07:00 -0000 1.14 @@ -225,10 +225,6 @@ vertical-align: middle; } -#tabLearnerControlTable td.topButtonsContainer { - width: 90px; -} - td.learnersHeaderPageCell,td.learnersPageShifter { min-width: 25px; cursor: pointer; Index: lams_monitoring/web/includes/javascript/monitorLesson.js =================================================================== RCS file: /usr/local/cvsroot/lams_monitoring/web/includes/javascript/monitorLesson.js,v diff -u -r1.27 -r1.28 --- lams_monitoring/web/includes/javascript/monitorLesson.js 1 Oct 2013 08:51:48 -0000 1.27 +++ lams_monitoring/web/includes/javascript/monitorLesson.js 11 Oct 2013 12:06:59 -0000 1.28 @@ -534,8 +534,7 @@ var selectedLearner = $('#learnerGroupList div.dialogListItemSelected'); if (selectedLearner.length == 1) { // open pop up with user progress in the given activity - openPopUp(LAMS_URL - + selectedLearner.attr('viewUrl'), "LearnActivity", 600, 800, true); + openPopUp(selectedLearner.attr('viewUrl'), "LearnActivity", 600, 800, true); } } }, @@ -909,7 +908,9 @@ learnerIcon.dblclick(function(event){ // double click on learner icon to see activity from his perspective event.stopPropagation(); - openPopUp(LAMS_URL + learner.url, "LearnActivity", 600, 800, true); + var url = LAMS_URL + 'monitoring/monitoring.do?method=getLearnerActivityURL&userID=' + + learner.id + '&activityID=' + activity.id + '&lessonID=' + lessonId; + openPopUp(url, "LearnActivity", 600, 800, true); }); } }); @@ -945,7 +946,7 @@ // create learner icons, along with handlers $.each(learners, function(learnerIndex, learner){ // maximum 41 icons in the bar - if (learners.length > 43 && learnerIndex == 42) { + if (learners.length > 56 && learnerIndex == 55) { // if icons do not fit in cell anymore, show a group icon $('').attr({ 'src' : LAMS_URL + 'images/icons/group.png', @@ -1401,9 +1402,11 @@ if (learners) { $.each(learners, function(learnerIndex, learner) { + var viewUrl = LAMS_URL + 'monitoring/monitoring.do?method=getLearnerActivityURL&userID=' + + learner.id + '&activityID=' + activityId + '&lessonID' + lessonId; var learnerDiv = $('
').attr({ 'userId' : learner.id, - 'viewUrl' : learner.url + 'viewUrl' : viewUrl }) .addClass('dialogListItem') .text(getLearnerDisplayName(learner)) @@ -1422,7 +1425,7 @@ if (allowView){ learnerDiv.dblclick(function(){ // same as clicking View Learner button - openPopUp(LAMS_URL + learner.url, "LearnActivity", 600, 800, true); + openPopUp(viewUrl, "LearnActivity", 600, 800, true); }); } }