Jump to content

MediaWiki:Common.js: Difference between revisions

Jehan (talk | contribs)
No edit summary
Jehan (talk | contribs)
No edit summary
Line 26: Line 26:
   
   
     if ( Button.firstChild.data === hideCaption ) {
     if ( Button.firstChild.data === hideCaption ) {
         for ( i = 1; i < Rows.length; i++ ) {
         for ( i = 0; i < Rows.length; i++ ) {
             Rows[i].style.display = 'none';
             Rows[i].style.display = 'none';
         }
         }
         Button.firstChild.data = expandCaption;
         Button.firstChild.data = expandCaption;
     } else {
     } else {
         for ( i = 1; i < Rows.length; i++ ) {
         for ( i = 0; i < Rows.length; i++ ) {
             Rows[i].style.display = Rows[0].style.display;
             Rows[i].style.display = Rows[0].style.display;
         }
         }