diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2014-01-20 23:15:06 +0100 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2014-01-20 23:15:06 +0100 |
commit | e02e3bc792293af9460da9c9d6b9185b94c5307f (patch) | |
tree | fccf99d2e3fdcfa07f501be4f6a5e1de2ff22161 /template/en/default/pages | |
parent | Bug 912064 - remove very old release notes; they are in source control if you... (diff) | |
download | bugzilla-e02e3bc792293af9460da9c9d6b9185b94c5307f.tar.gz bugzilla-e02e3bc792293af9460da9c9d6b9185b94c5307f.tar.bz2 bugzilla-e02e3bc792293af9460da9c9d6b9185b94c5307f.zip |
Bug 958825: Use HTML5's attribute "autofocus" instead of onload="element.focus()"
r/a=justdave
Diffstat (limited to 'template/en/default/pages')
-rw-r--r-- | template/en/default/pages/quicksearch.html.tmpl | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/template/en/default/pages/quicksearch.html.tmpl b/template/en/default/pages/quicksearch.html.tmpl index 6f9074732..78634b041 100644 --- a/template/en/default/pages/quicksearch.html.tmpl +++ b/template/en/default/pages/quicksearch.html.tmpl @@ -8,8 +8,7 @@ [% INCLUDE global/header.html.tmpl title = "$terms.Bugzilla QuickSearch", - style_urls = ['skins/standard/page.css'] - onload = 'document.forms[\'f\'].quicksearch.focus()' + style_urls = ['skins/standard/page.css'] %] [% USE Bugzilla %] @@ -17,11 +16,8 @@ <p><label for="quicksearch">Type in one or more words (or pieces of words) to search for:</label></p> -<form name="f" action="buglist.cgi" method="get" - onsubmit="if (this.quicksearch.value == '') - { alert('Please enter one or more search terms first.'); - return false; } return true;"> - <input type="text" size="40" name="quicksearch" id="quicksearch"> +<form name="f" action="buglist.cgi" method="get"> + <input size="40" name="quicksearch" id="quicksearch" autofocus required> <input type="submit" value="Search" id="find"> </form> |