11,286
edits
FlyingRagnar (talk | contribs) No edit summary |
FlyingRagnar (talk | contribs) No edit summary |
||
| Line 76: | Line 76: | ||
ButtonLink.style.color = Header.style.color; | ButtonLink.style.color = Header.style.color; | ||
ButtonLink.setAttribute( "id", "collapseButton" + tableIndex ); | ButtonLink.setAttribute( "id", "collapseButton" + tableIndex ); | ||
ButtonLink.setAttribute( "href", "javascript:collapseTable(" + tableIndex + ");" ); | |||
ButtonLink.appendChild( ButtonText ); | ButtonLink.appendChild( ButtonText ); | ||
| Line 88: | Line 88: | ||
Header.insertBefore( Button, Header.childNodes[0] ); | Header.insertBefore( Button, Header.childNodes[0] ); | ||
$( "#collapseButton" + tableIndex ).click(function() { | //$( "#collapseButton" + tableIndex ).click(function() { | ||
// collapseTable(tableIndex); | |||
// return false; | |||
}); | //}); | ||
tableIndex++; | tableIndex++; | ||
} | } | ||