Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.2.4, 2.3.1, 2.4
-
Component/s: Course, Enrolments, JavaScript
-
Labels:
-
Testing Instructions:
-
Affected Branches:MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE
-
Fixed Branches:MOODLE_22_STABLE, MOODLE_23_STABLE
-
Pull from Repository:
-
Pull Master Branch:wip-mdl-34537
-
Pull Master Diff URL:
Description
There's CSS in the base theme which is intended to color odd and even rows of the user list different colors by attaching classes called "odd" and "even". The bit of code that adds these classes has a bug, since it adds the class based on the "rel" number (which might be the user id?) rather than on the position in the list. From the perspective of someone using Moodle this is effectively random.
I've used the following CSS instead:
.user-enroller-panel .uep-search-results .users .user:nth-child(odd)
|
This doesn't work in IE8 but works everywhere else and doesn't require you to add classes to each row.