-
Improvement
-
Resolution: Fixed
-
Minor
-
2.5
-
MOODLE_25_STABLE
-
MOODLE_26_STABLE
-
Having to conditionally add an unordered list in our JavaScript is a right pain in the back-side and makes it very difficult to get right for course formats.
We should always create the <ul> element, even for empty sections. This will vastly simplify our JavaScript.
I've had a quick look at all of the renderers for contributed course formats, and none of these overwrites the cm_list function. If one were to do so in the future, then they would either not support the existing JS code anyway so no features are lost.