Index: trunk/extensions/Configure/Configure.js |
— | — | @@ -318,7 +318,12 @@ |
319 | 319 | var fieldset_title = getInnerText( fieldset.getElementsByTagName( 'legend' )[0] ); |
320 | 320 | var subsections = getElementsByClassName( fieldset, 'table', 'configure-table' ); |
321 | 321 | for( var sid=0;sid<subsections.length;++sid ) { |
322 | | - var subsection = subsections[sid].getElementsByTagName( 'tbody' )[0]; |
| 322 | + var subsection; |
| 323 | + if (subsections[sid].getElementsByTagName( 'tbody' ).length > 0) { |
| 324 | + subsection = subsections[sid].getElementsByTagName( 'tbody' )[0]; |
| 325 | + } else { |
| 326 | + subsection = subsections[sid]; |
| 327 | + } |
323 | 328 | var heading = document.getElementById( subsection.parentNode.id.replace( 'config-table', 'config-head' ) ); |
324 | 329 | |
325 | 330 | // For each setting... |