Jump to content

MediaWiki:Common.js: Difference between revisions

Jehan (talk | contribs)
No edit summary
Jehan (talk | contribs)
No edit summary
Line 91: Line 91:
    ButtonLink.style.color = Header.style.color;
    ButtonLink.style.color = Header.style.color;
    ButtonLink.setAttribute( 'id', 'hideButton' + tableIndex );
    ButtonLink.setAttribute( 'id', 'hideButton' + tableIndex );
    ButtonLink.setAttribute( 'href', '#' );
    if ( 0 ) ButtonLink.setAttribute( 'href', '#' );
    $( ButtonLink ).on( 'click', $.proxy( handleButtonLink, ButtonLink, tableIndex ) );
    $( ButtonLink ).on( 'click', $.proxy( handleButtonLink, ButtonLink, tableIndex ) );
    ButtonLink.appendChild( ButtonText );
    ButtonLink.appendChild( ButtonText );