More S5 tweaks: incremental builds for definition-lists and some CSS tweaks.

This commit is contained in:
Jacques Distler 2007-03-04 02:01:36 -06:00
parent 6f81cb1207
commit aed5c10c70
3 changed files with 15 additions and 3 deletions

View file

@ -544,7 +544,7 @@ function getIncrementals(obj) {
for (var i = 0; i < children.length; i++) {
var child = children[i];
if (hasClass(child, 'incremental')) {
if (child.nodeName == 'ol' || child.nodeName == 'ul') {
if (child.nodeName == 'ol' || child.nodeName == 'ul' || child.nodeName == 'dl') {
removeClass(child, 'incremental');
for (var j = 0; j < child.childNodes.length; j++) {
if (child.childNodes[j].nodeType == 1) {
@ -557,7 +557,7 @@ function getIncrementals(obj) {
}
}
if (hasClass(child, 'show-first')) {
if (child.nodeName == 'ol' || child.nodeName == 'ul') {
if (child.nodeName == 'ol' || child.nodeName == 'ul' || child.nodeName == 'dl') {
removeClass(child, 'show-first');
if (child.childNodes[isGe].nodeType == 1) {
removeClass(child.childNodes[isGe], 'incremental');