Last modified: 2009-07-11 03:01:26 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 6165 - Search box to gain initial focus on main page
Search box to gain initial focus on main page
Status: RESOLVED DUPLICATE of bug 1864
Product: MediaWiki
Classification: Unclassified
Interface (Other open bugs)
1.16.x
PC Windows XP
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://en.wikipedia.org/wiki/Main_Page
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-06-01 17:43 UTC by Dbeattie
Modified: 2009-07-11 03:01 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Dbeattie 2006-06-01 17:43:26 UTC
When visiting the "Main Page" for English
(http://en.wikipedia.org/wiki/Main_Page), it would be nice if the cursor
automatically appeared in the search box like it does for the home page
(http://www.wikipedia.org/). Without this, each person must first click on the
search box before starting to type any search terms.

This can be fixed by adding the following JavaScript to the wikibits.js file in
the runOnloadHook() function just before the "Run any added-on functions" section.

// Send focus to search box by default.
var sInput = document.getElementById("searchInput");
if (typeof sInput != 'undefined') {
	sInput.focus();
}

NOTE: This may scroll the page depending on the location of the search box. For
example, in the print layout the page scrolls down to the search box.
Comment 1 Brion Vibber 2006-06-01 18:00:46 UTC

*** This bug has been marked as a duplicate of 1864 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links