Skip to content
Browse files

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

… enrol popup
  • Loading branch information...
1 parent bac15e5 commit 339c95491305845264742c463dc714174cf87267 @rajeshtaneja rajeshtaneja committed Aug 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 enrol/manual/yui/quickenrolment/quickenrolment.js
View
2 enrol/manual/yui/quickenrolment/quickenrolment.js
@@ -339,7 +339,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 339c954

Please sign in to comment.
Something went wrong with that request. Please try again.