MediaWiki:Common.js: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 26: | Line 26: | ||
if ( Button.firstChild.data === hideCaption ) { | if ( Button.firstChild.data === hideCaption ) { | ||
for ( 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 = | for ( i = 0; i < Rows.length; i++ ) { | ||
Rows[i].style.display = Rows[0].style.display; | Rows[i].style.display = Rows[0].style.display; | ||
} | } | ||