Fix for bug 85832 - QuickSearch should strip leading and trailing spaces.

Patch by Andreas Franke <afranke@ags.uni-sb.de>
This commit is contained in:
jake%acutex.net 2001-06-18 19:24:17 +00:00
parent b3863acdd7
commit 333fb5fbb7

View File

@ -708,6 +708,9 @@ function QuickSearch ()
{
var input = document.f.id.value;
//remove leading and trailing whitespace
input = input.replace(/^[\s]+/,"").replace(/[\s]+$/,"");
if (input == "")
{
//once this _is_ on http://bugzilla.mozilla.org, it should just return;
@ -733,6 +736,10 @@ function QuickSearch ()
function LoadQuery() {
var input = document.f.id.value;
//remove leading and trailing whitespace
input = input.replace(/^[\s]+/,"").replace(/[\s]+$/,"");
Search(bugzilla+"query.cgi",input,false);
return;
}