diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2013-01-18 16:46:04 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2013-01-18 16:46:04 +0100 |
commit | 63601400e476c6cf43d985f3e7b9864681695ed4 (patch) | |
tree | f7846203a952e38aaf66989d0a4702779f549962 /resources/mediawiki.special/mediawiki.special.recentchanges.js | |
parent | 8ff01378c9e0207f9169b81966a51def645b6a51 (diff) |
Update to MediaWiki 1.20.2
this update includes:
* adjusted Arch Linux skin
* updated FluxBBAuthPlugin
* patch for https://bugzilla.wikimedia.org/show_bug.cgi?id=44024
Diffstat (limited to 'resources/mediawiki.special/mediawiki.special.recentchanges.js')
-rw-r--r-- | resources/mediawiki.special/mediawiki.special.recentchanges.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/resources/mediawiki.special/mediawiki.special.recentchanges.js b/resources/mediawiki.special/mediawiki.special.recentchanges.js index 3d520f5e..7996d935 100644 --- a/resources/mediawiki.special/mediawiki.special.recentchanges.js +++ b/resources/mediawiki.special/mediawiki.special.recentchanges.js @@ -1,5 +1,5 @@ /* JavaScript for Special:RecentChanges */ -( function( $ ) { +( function ( mw, $ ) { var checkboxes = [ 'nsassociated', 'nsinvert' ]; @@ -14,17 +14,17 @@ * Handler to disable/enable the namespace selector checkboxes when the * special 'all' namespace is selected/unselected respectively. */ - updateCheckboxes: function() { + updateCheckboxes: function () { // The option element for the 'all' namespace has an empty value - var isAllNS = ('' === $select.find('option:selected').val() ); + var isAllNS = $select.find('option:selected').val() === ''; // Iterates over checkboxes and propagate the selected option - $.each( checkboxes, function( i, id ) { + $.each( checkboxes, function ( i, id ) { $( '#' + id ).prop( 'disabled', isAllNS ); }); }, - init: function() { + init: function () { // Populate $select = $( '#namespace' ); @@ -36,4 +36,4 @@ // Run when document is ready $( rc.init ); -})( jQuery ); +}( mediaWiki, jQuery ) ); |