MediaWiki:Common.js: Difference between revisions
Appearance
No edit summary |
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; | ||
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"; | ||
}; | }; | ||