Index: trunk/extensions/Translate/js/translate.langstats.js |
— | — | @@ -4,7 +4,7 @@ |
5 | 5 | * @created January 3, 2011 |
6 | 6 | * @license GPL v2, CC-BY-SA-3.0 |
7 | 7 | */ |
8 | | -jQuery( document ).ready( function() { |
| 8 | +jQuery( document ).ready( function( $ ) { |
9 | 9 | |
10 | 10 | var $translateTable = $( '.mw-sp-translate-table' ), |
11 | 11 | $metaRows = $( 'tr[data-ismeta=1]', $translateTable ); |
— | — | @@ -22,7 +22,7 @@ |
23 | 23 | if ( $thisChildRows.size() ) { |
24 | 24 | |
25 | 25 | // Build toggle link |
26 | | - var $toggler = $( '<span class="mw-sp-langstats-toggle mw-sp-langstats-expander">[</span>' ).append( $( '<a href="#" onclick="return false;">' ).text( mw.msg( 'translate-langstats-expand' ) ) ).append( ']' ).click( function() { |
| 26 | + var $toggler = $( '<span class="mw-sp-langstats-toggle mw-sp-langstats-expander">[</span>' ).append( $( '<a href="#" onclick="return false;"></a>' ).text( mw.msg( 'translate-langstats-expand' ) ) ).append( ']' ).click( function() { |
27 | 27 | var $el = $( this ); |
28 | 28 | // Switch the state and toggle the rows |
29 | 29 | if ( $el.hasClass( 'mw-sp-langstats-expander' ) ) { |
— | — | @@ -44,7 +44,7 @@ |
45 | 45 | // Create, bind and append the toggle-all button |
46 | 46 | var $allChildRows = $( 'tr[data-parentgroups]', $translateTable ), |
47 | 47 | $allToggles_cache = null, |
48 | | - $toggleAllButton = $( '<span class="mw-sp-langstats-expander">[</span>' ).append( $( '<a href="#" onclick="return false;">' ).text( mw.msg( 'translate-langstats-expandall' ) ) ).append( ']' ).click( function() { |
| 48 | + $toggleAllButton = $( '<span class="mw-sp-langstats-expander">[</span>' ).append( $( '<a href="#" onclick="return false;"></a>' ).text( mw.msg( 'translate-langstats-expandall' ) ) ).append( ']' ).click( function() { |
49 | 49 | var $el = $( this ), |
50 | 50 | $allToggles = !!$allToggles_cache ? $allToggles_cache : $( '.mw-sp-langstats-toggle', $translateTable ); |
51 | 51 | // Switch the state and toggle the rows |
— | — | @@ -72,7 +72,7 @@ |
73 | 73 | |
74 | 74 | // When hovering a row, adjust brightness of the last two custom-colored cells as well |
75 | 75 | // See also translate.langstats.css for the highlighting for the other normal rows |
76 | | -mediaWiki.loader.using( 'jquery.colorUtil' , function() { |
| 76 | +mw.loader.using( 'jquery.colorUtil' , function() { |
77 | 77 | |
78 | 78 | $( '.mw-sp-translate-table.wikitable tr' ).hover( function() { |
79 | 79 | |