Skip to content

Commit

Permalink
MDL-20044: fixed ajax functionality when using bullet points (<ul>) i…
Browse files Browse the repository at this point in the history
…n topic summary.
  • Loading branch information
rwijaya committed Oct 29, 2010
1 parent 7c810d0 commit b2b204b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/ajax/section_classes.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,11 @@ section_class.prototype.process_section = function() {

// Find/edit resources
this.resources_ul = this.content_div.getElementsByTagName('ul')[0];
var i=0;
while (this.resources_ul && this.resources_ul.className != 'section img-text') {
i++;
this.resources_ul = this.content_div.getElementsByTagName('ul')[i]; i++;
}
if (!this.resources_ul) {
this.resources_ul = document.createElement('ul');
this.resources_ul.className='section';
Expand Down

0 comments on commit b2b204b

Please sign in to comment.