Jump to content

MediaWiki:Common.js: Difference between revisions

Jehan (talk | contribs)
No edit summary
Jehan (talk | contribs)
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 78: Line 78:
Tables[i].setAttribute( 'id', 'hideableTable' + tableIndex );
Tables[i].setAttribute( 'id', 'hideableTable' + tableIndex );
if ( 1 ) {
if ( 0 ) {
                                     $( linkImage ).on( 'click', $.proxy( handlelinkImage, linkImage , tableIndex ) );
                                     $( linkImage ).on( 'click', $.proxy( handlelinkImage, linkImage , tableIndex ) );
                                 }
                                 }
if ( 0 ) {
if ( 1 ) {
                                     var Button    = document.createElement( 'span' );
                                     var Button    = document.createElement( 'span' );
    var ButtonLink = document.createElement( 'a' );
    var ButtonLink = document.createElement( 'a' );
Line 181: 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 );