Jump to content

MediaWiki:Common.js: Difference between revisions

Jehan (talk | contribs)
No edit summary
Jehan (talk | contribs)
No edit summary
Line 23: Line 23:
     }
     }
   
   
/* hide shown tables */
var j;
var i;
for ( j = 0; j < hideTables.length; j++ ) {
var Rows = hideTables[j].rows;
for ( i = 0; i < Rows.length; i++ ) {
Rows[i].style.display = 'none';
}
hideTables[j].className = "wikitable hideable hidden";
}
var Rows = showTable.rows;
var Rows = showTable.rows;
var i;
   
   
if ( Button.firstChild.data === hideCaption ) {
if ( Button.firstChild.data === hideCaption ) {
Line 37: Line 48:
Button.firstChild.data = hideCaption;
Button.firstChild.data = hideCaption;
}
}
showTable.className = "wikitable hideable hidden shown";
showTable.className = "wikitable hideable hidden shown";
/* hide shown tables */
var j;
for ( j = 0; j < hideTables.length; j++ ) {
var Rows = hideTables[j].rows;
var i;
for ( i = 0; i < Rows.length; i++ ) {
Rows[i].style.display = 'none';
}
hideTables[j].className = "wikitable hideable hidden";
}
};
};