r87052 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r87051‎ | r87052 | r87053 >
Date:22:19, 27 April 2011
Author:krinkle
Status:ok
Tags:
Comment:
Little performance fix and typo fix. Follow-up r86202
Modified paths:
  • /trunk/phase3/resources/mediawiki.action/mediawiki.action.view.metadata.js (modified) (history)

Diff [purge]

Index: trunk/phase3/resources/mediawiki.action/mediawiki.action.view.metadata.js
@@ -21,12 +21,12 @@
2222 'text': showText,
2323 'href': '#'
2424 }).click(function() {
25 - if ( $table.is( '.collapsed' ) ) {
 25+ if ( $table.hasClass( 'collapsed' ) ) {
2626 $( this ).text( hideText );
2727 } else {
2828 $( this ).text( showText );
2929 }
30 - $table.toggleClass( 'expanded, collapsed' );
 30+ $table.toggleClass( 'expanded collapsed' );
3131 return false;
3232 });
3333

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r86202Free metadata toggle script from wikibits.js dependencies; rename to mediawik...diebuche11:54, 16 April 2011

Status & tagging log