diff options
Diffstat (limited to 'quicksearch.js')
-rw-r--r-- | quicksearch.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/quicksearch.js b/quicksearch.js index fa2c474e4..7fa9a02f5 100644 --- a/quicksearch.js +++ b/quicksearch.js @@ -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; } |