Index: lams_monitoring/web/includes/javascript/monitorLesson.js
===================================================================
RCS file: /usr/local/cvsroot/lams_monitoring/web/includes/javascript/monitorLesson.js,v
diff -u -r1.30 -r1.31
--- lams_monitoring/web/includes/javascript/monitorLesson.js 3 Dec 2013 11:54:46 -0000 1.30
+++ lams_monitoring/web/includes/javascript/monitorLesson.js 10 Dec 2013 13:23:11 -0000 1.31
@@ -944,19 +944,8 @@
if (learners) {
// create learner icons, along with handlers
$.each(learners, function(learnerIndex, learner){
- // maximum 41 icons in the bar
- 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',
- 'title' : LEARNER_GROUP_SHOW_LABEL
- }).css('cursor', 'pointer')
- .dblclick(function(){
- showLearnerGroupDialog(null, LEARNER_FINISHED_DIALOG_TITLE_LABEL, learners, true, false);
- }).appendTo(iconsContainer);
- // stop processing learners
- return false;
- } else {
+ // maximum 55 icons in the bar
+ if (learnerIndex < 55) {
// make an icon for each learner
$('
').attr({
'src' : LAMS_URL + 'images/icons/user.png',
@@ -982,6 +971,15 @@
.appendTo(iconsContainer);
}
});
+
+ // show a group icon
+ $('
').attr({
+ 'src' : LAMS_URL + 'images/icons/group.png',
+ 'title' : LEARNER_GROUP_SHOW_LABEL
+ }).css('cursor', 'pointer')
+ .dblclick(function(){
+ showLearnerGroupDialog(null, LEARNER_FINISHED_DIALOG_TITLE_LABEL, learners, true, false);
+ }).appendTo(iconsContainer);
}
}