Bring over more trunk fixes.

This commit is contained in:
blakeross%telocity.com 2002-11-04 23:50:50 +00:00
parent b858b327c5
commit 696cbde729

View File

@ -215,7 +215,7 @@
<![CDATA[
const tabs = this.childNodes;
for (var i = 0; i < tabs.length; i++) {
if (tabs.selected)
if (tabs[i].selected)
return i;
}
// throw an exception when no tab is selected (we shouldn't get here)
@ -482,14 +482,7 @@
<handlers>
<handler event="click" button="0">
<![CDATA[
var tabs = this.parentNode;
do {
if (tabs.localName == "tabs")
break;
tabs = tabs.parentNode;
} while(tabs.localName != "tabbox");
tabs.selectedItem = this;
if (!this.selected) this.selected = true;
this.parentNode.selectedItem = this;
]]>
</handler>