MediaWiki:Common.js: Difference between revisions
Appearance
No edit summary |
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 ( | if ( linkImage ) linkImage.insertBefore( Button, linkImage.firstChild ); | ||
tableIndex++; | tableIndex++; | ||
} | } | ||