Merge branch 'wip-mdl-34537' of git://github.com/rajeshtaneja/moodle
authorAparup Banerjee <aparup@moodle.com>
Tue, 4 Sep 2012 09:31:50 +0000 (17:31 +0800)
committerAparup Banerjee <aparup@moodle.com>
Tue, 4 Sep 2012 09:31:50 +0000 (17:31 +0800)
enrol/manual/yui/quickenrolment/quickenrolment.js

index 08f8d70..4efe967 100644 (file)
@@ -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)))