Permalink
Browse files

MDL-20044: fixed ajax functionality when using bullet points (<ul>) i…

…n topic summary.
  • Loading branch information...
1 parent 7c810d0 commit b2b204b764907fb8ffcdf6fb93467688ac603515 @rwijaya rwijaya committed Oct 29, 2010
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/ajax/section_classes.js
@@ -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';

0 comments on commit b2b204b

Please sign in to comment.