summaryrefslogtreecommitdiff
path: root/resources/mediawiki.special/mediawiki.special.recentchanges.js
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-05-01 15:12:12 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-05-01 15:12:12 -0400
commitc9aa36da061816dee256a979c2ff8d2ee41824d9 (patch)
tree29f7002b80ee984b488bd047dbbd80b36bf892e9 /resources/mediawiki.special/mediawiki.special.recentchanges.js
parentb4274e0e33eafb5e9ead9d949ebf031a9fb8363b (diff)
parentd1ba966140d7a60cd5ae4e8667ceb27c1a138592 (diff)
Merge branch 'archwiki'
# Conflicts: # skins/ArchLinux.php # skins/ArchLinux/archlogo.gif
Diffstat (limited to 'resources/mediawiki.special/mediawiki.special.recentchanges.js')
-rw-r--r--resources/mediawiki.special/mediawiki.special.recentchanges.js34
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 ) );