Jump to content

MediaWiki:Common.js: Difference between revisions

Jehan (talk | contribs)
No edit summary
Jehan (talk | contribs)
No edit summary
Line 88: Line 88:
ButtonLink.setAttribute( 'href', '#' );
ButtonLink.setAttribute( 'href', '#' );
$( ButtonLink ).on( 'click', $.proxy( handleButtonLink, ButtonLink, tableIndex ) );
$( ButtonLink ).on( 'click', $.proxy( handleButtonLink, ButtonLink, tableIndex ) );
$( linkImage ).on( 'click', $.proxy( handleButtonLink, ButtonLink, tableIndex ) );
ButtonLink.appendChild( ButtonText );
ButtonLink.appendChild( ButtonText );
 
 
Line 96: Line 97:
Header.insertBefore( Button, Header.firstChild );
Header.insertBefore( Button, Header.firstChild );
if ( linkImage ) linkImage.appendChild( Button );
if ( linkImage ) linkImage.appendChild( Button );
if ( 0 ) linkImage.insertBefore( Button, linkImage.firstChild );
if ( linkImage ) linkImage.insertBefore( Button, linkImage.firstChild );
tableIndex++;
tableIndex++;
}
}