From: Ævar Arnfjörð Bjarmason Date: Mon, 11 Apr 2005 00:04:57 +0000 (+0000) Subject: * Experimental autofocus on searchbox support, see bug 1864 X-Git-Tag: 1.5.0alpha1~304 X-Git-Url: http://git.cyclocoop.org/wiki/Target_page?a=commitdiff_plain;h=b37aa3b8d5fba9111386d5f33d46728efee4b930;p=lhc%2Fweb%2Fwiklou.git * Experimental autofocus on searchbox support, see bug 1864 --- diff --git a/skins/common/wikibits.js b/skins/common/wikibits.js index 6d2edc549f..95cbefb8a7 100644 --- a/skins/common/wikibits.js +++ b/skins/common/wikibits.js @@ -21,6 +21,7 @@ function onloadhook () { unhidetzbutton(); tabbedprefs(); akeytt(); + searchfocus(); } if (window.addEventListener) window.addEventListener("load",onloadhook,false); else if (window.attachEvent) window.attachEvent("onload",onloadhook); @@ -453,3 +454,9 @@ function addRightClickEditHandler( el ) { } } } + +function searchfocus() { + // @bug 1864, autofocus on the searchform for MonoBook + // The former search is