Add HTML ID to tag filter input
authorKunal Mehta <legoktm@gmail.com>
Fri, 25 Oct 2013 20:30:00 +0000 (13:30 -0700)
committerKunal Mehta <legoktm@gmail.com>
Fri, 25 Oct 2013 20:30:00 +0000 (13:30 -0700)
Makes it so if you click "Tag filter" the input box is
now focused.

Bug: 56175
Change-Id: I502f86f227bc0d1cc5ea936d9047bc51d169323a

includes/ChangeTags.php

index 3fc27f9..7ec641d 100644 (file)
@@ -232,7 +232,7 @@ class ChangeTags {
                }
 
                $data = array( Html::rawElement( 'label', array( 'for' => 'tagfilter' ), wfMessage( 'tag-filter' )->parse() ),
-                       Xml::input( 'tagfilter', 20, $selected, array( 'class' => 'mw-tagfilter-input' ) ) );
+                       Xml::input( 'tagfilter', 20, $selected, array( 'class' => 'mw-tagfilter-input', 'id' => 'tagfilter' ) ) );
 
                if ( !$fullForm ) {
                        return $data;