User:FlyingRagnar/vector.js: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
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.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);
    // collapseTable(tableIndex);
return false;
    // return false;
             });
             //});
             tableIndex++;
             tableIndex++;
         }
         }

Navigation menu