Permalink
Browse files

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

… topic summary.
1 parent d694bf9 commit e29748a54a09e8069e15a77934cf3dccd098b64a Rossiani Wijaya committed Dec 9, 2009
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/ajax/section_classes.js
@@ -141,6 +141,12 @@ section_class.prototype.process_section = function() {
// Find/edit resources
this.resources_ul = this.content_td.getElementsByTagName('ul')[0];
+ var i=0;
+ while (this.resources_ul && this.resources_ul.className != 'section img-text') {
+ this.resources_ul = this.content_td.getElementsByTagName('ul')[i];
+ i++;
+ }
+
if (!this.resources_ul) {
this.resources_ul = document.createElement('ul');
this.resources_ul.className='section';

0 comments on commit e29748a

Please sign in to comment.