SpecialWatchlist: JS enhancements to namespace selector (like RC)
authorBartosz Dziewoński <matma.rex@gmail.com>
Sun, 10 Nov 2013 17:17:13 +0000 (18:17 +0100)
committerOri.livneh <ori@wikimedia.org>
Sun, 12 Jan 2014 02:47:21 +0000 (02:47 +0000)
Just load the same modules SpecialRecentChanges does. We only need to
change an id on one form element for it to work.

Change-Id: I0bfad7776907a094335089f86dec1de6456d85c8

includes/specials/SpecialWatchlist.php

index 0204c3f..c947c78 100644 (file)
@@ -170,6 +170,7 @@ class SpecialWatchlist extends SpecialRecentChanges {
 
                $this->setHeaders();
                $this->outputHeader();
+               $this->addModules();
 
                // Add feed links
                $wlToken = $user->getTokenFromOption( 'watchlisttoken' );
@@ -410,7 +411,7 @@ class SpecialWatchlist extends SpecialRecentChanges {
                $form .= Xml::checkLabel(
                        $this->msg( 'namespace_association' )->text(),
                        'associated',
-                       'associated',
+                       'nsassociated',
                        $opts['associated'],
                        array( 'title' => $this->msg( 'tooltip-namespace_association' )->text() )
                ) . '&#160;';