mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-19 09:30:44 +00:00
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:
parent
b3863acdd7
commit
333fb5fbb7
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user