Permalink
Browse files

MDL-34537 Enrolments: Assign alternative odd and even class to manual…

… enrol popup
  • Loading branch information...
1 parent 76c9fcc commit f731735624d876bc5db3c717f5486b2386dc0b21 Rajesh Taneja committed Aug 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 enrol/manual/yui/quickenrolment/quickenrolment.js
@@ -338,7 +338,7 @@ YUI.add('moodle-enrol_manual-quickenrolment', function(Y) {
count++;
var user = result.response.users[i];
users.append(create('<div class="'+CSS.USER+' clearfix" rel="'+user.id+'"></div>')
- .addClass((i%2)?CSS.ODD:CSS.EVEN)
+ .addClass((count%2)?CSS.ODD:CSS.EVEN)
.append(create('<div class="'+CSS.COUNT+'">'+count+'</div>'))
.append(create('<div class="'+CSS.PICTURE+'"></div>')
.append(create(user.picture)))

0 comments on commit f731735

Please sign in to comment.