Jump to content

MediaWiki:Common.js: Difference between revisions

Jehan (talk | contribs)
No edit summary
Jehan (talk | contribs)
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 79: Line 79:
if ( 0 ) {
if ( 0 ) {
                                     linkImage.setAttribute( 'href', '#' );
                                     $( linkImage ).on( 'click', $.proxy( handlelinkImage, linkImage , tableIndex ) );
    $( linkImage ).on( 'click', $.proxy( handlelinkImage, linkImage , tableIndex ) );
                                 }
                                 }
if ( 1 ) {
if ( 1 ) {
Line 91: Line 90:
    ButtonLink.style.color = Header.style.color;
    ButtonLink.style.color = Header.style.color;
    ButtonLink.setAttribute( 'id', 'hideButton' + tableIndex );
    ButtonLink.setAttribute( 'id', 'hideButton' + tableIndex );
    if ( 0 ) ButtonLink.setAttribute( 'href', '#' );
    ButtonLink.setAttribute( 'href', '#' );
    $( ButtonLink ).on( 'click', $.proxy( handleButtonLink, ButtonLink, tableIndex ) );
    $( ButtonLink ).on( 'click', $.proxy( handleButtonLink, ButtonLink, tableIndex ) );
    ButtonLink.appendChild( ButtonText );
    ButtonLink.appendChild( ButtonText );
Line 182: Line 181:
             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 );