Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
7de34a38
Commit
7de34a38
authored
Jun 19, 2001
by
jake%acutex.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for bug 85832 - QuickSearch should strip leading and trailing spaces.
Patch by Andreas Franke <afranke@ags.uni-sb.de>
parent
4fdd6b8c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
quicksearch.js
quicksearch.js
+7
-0
No files found.
quicksearch.js
View file @
7de34a38
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment