Before this fix, if more than one util.list powered list existed within a given
document/window, they would each intefere with the other's ordinal column.
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
try {
setTimeout( // Otherwise we can miss a row just added
function() {
- var nl = document.getElementsByAttribute('label','_');
+ var nl = obj.node.getElementsByAttribute('label','_');
for (var i = 0; i < nl.length; i++) {
nl[i].setAttribute(
'ord_col',
'ordinal'
);
}
- nl = document.getElementsByAttribute('ord_col','true');
+ nl = obj.node.getElementsByAttribute('ord_col','true');
for (var i = 0; i < nl.length; i++) {
nl[i].setAttribute(
'label',