Little performance fix and typo fix. Follow-up r86202
authorKrinkle <krinkle@users.mediawiki.org>
Wed, 27 Apr 2011 22:19:56 +0000 (22:19 +0000)
committerKrinkle <krinkle@users.mediawiki.org>
Wed, 27 Apr 2011 22:19:56 +0000 (22:19 +0000)
resources/mediawiki.action/mediawiki.action.view.metadata.js

index dd3bde9..378dd15 100644 (file)
@@ -21,12 +21,12 @@ jQuery( document ).ready( function( $ ) {
                'text': showText,
                'href': '#'
        }).click(function() {
-               if ( $table.is( '.collapsed' ) ) {
+               if ( $table.hasClass( 'collapsed' ) ) {
                        $( this ).text( hideText );
                } else {
                        $( this ).text( showText );
                }
-               $table.toggleClass( 'expanded, collapsed' );
+               $table.toggleClass( 'expanded collapsed' );
                return false;
        });