Jump to content

MediaWiki:Common.js: Difference between revisions

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