Commit c9ce039e authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 504522: The search field on index.cgi is not cleared automatically when…

Bug 504522: The search field on index.cgi is not cleared automatically when entering the field (IE 7 and older only) - Patch by Fré©ric Buclin <LpSolit@gmail.com> r=pyrzak r=mkanat a=LpSolit
parent b898698b
......@@ -74,7 +74,7 @@
margin-bottom: 2em;
}
#quicksearchForm #quicksearch
#quicksearchForm #quicksearch_main
{
width: 25em;
}
......
......@@ -40,7 +40,7 @@
<script type="text/javascript">
<!--
function onLoadActions() {
quicksearchHelpText('quicksearch', 'show');
quicksearchHelpText('quicksearch_main', 'show');
if( window.external.AddSearchProvider ){
YAHOO.util.Dom.removeClass('quicksearch_plugin', 'bz_default_hidden');
}
......@@ -134,7 +134,7 @@ YAHOO.util.Event.onDOMReady(onLoadActions);
<a id="query" class="bz_common_actions"
href="query.cgi"><span>Search</span></a>
<a id="account" class="bz_common_actions quicksearch_help_text"
<a id="account" class="bz_common_actions"
[% IF user.id %]
href="userprefs.cgi"><span>User Preferences</span></a>
[% ELSIF Param('createemailregexp')
......@@ -144,10 +144,11 @@ YAHOO.util.Event.onDOMReady(onLoadActions);
[% ELSE %]
href="?GoAheadAndLogIn=1"><span>Log In</span></a>
[% END %]
<form id="quicksearchForm" name="quicksearchForm" action="buglist.cgi"
onsubmit="return checkQuicksearch(this);">
<div>
<input id="quicksearch" type="text" name="quicksearch"
<input id="quicksearch_main" type="text" name="quicksearch"
onfocus="quicksearchHelpText(this.id, 'hide');"
onblur="quicksearchHelpText(this.id, 'show');"
>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment