diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2014-12-27 15:41:37 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2014-12-31 11:43:28 +0100 |
commit | c1f9b1f7b1b77776192048005dcc66dcf3df2bfb (patch) | |
tree | 2b38796e738dd74cb42ecd9bfd151803108386bc /resources/mediawiki.special/mediawiki.special.recentchanges.js | |
parent | b88ab0086858470dd1f644e64cb4e4f62bb2be9b (diff) |
Update to MediaWiki 1.24.1
Diffstat (limited to 'resources/mediawiki.special/mediawiki.special.recentchanges.js')
-rw-r--r-- | resources/mediawiki.special/mediawiki.special.recentchanges.js | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/resources/mediawiki.special/mediawiki.special.recentchanges.js b/resources/mediawiki.special/mediawiki.special.recentchanges.js deleted file mode 100644 index 79d793af..00000000 --- a/resources/mediawiki.special/mediawiki.special.recentchanges.js +++ /dev/null @@ -1,34 +0,0 @@ -/** - * JavaScript for Special:RecentChanges - */ -( function ( mw, $ ) { - var rc, $checkboxes, $select; - - rc = { - /** - * Handler to disable/enable the namespace selector checkboxes when the - * special 'all' namespace is selected/unselected respectively. - */ - updateCheckboxes: function () { - // The option element for the 'all' namespace has an empty value - var isAllNS = $select.val() === ''; - - // Iterates over checkboxes and propagate the selected option - $checkboxes.prop( 'disabled', isAllNS ); - }, - - init: function () { - $select = $( '#namespace' ); - $checkboxes = $( '#nsassociated, #nsinvert' ); - - // Bind to change event, and trigger once to set the initial state of the checkboxes. - rc.updateCheckboxes(); - $select.change( rc.updateCheckboxes ); - } - }; - - $( rc.init ); - - mw.special.recentchanges = rc; - -}( mediaWiki, jQuery ) ); |