Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
cloogle.org
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Cloogle
cloogle.org
Commits
b5290e52
Verified
Commit
b5290e52
authored
Aug 30, 2018
by
Camil Staps
🚀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
open help text when searching for "how to use"
parent
510686a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
frontend/api.js
frontend/api.js
+3
-0
No files found.
frontend/api.js
View file @
b5290e52
...
...
@@ -867,6 +867,9 @@ function formsubmit() {
var
q
=
form_str
.
getInputOrContentEditableValue
().
replace
(
/
\u
00a0/g
,
'
'
);
if
(
q
===
''
)
{
sresults
.
innerHTML
=
'
<p>Can
\'
t search for the empty string</p>
'
;
}
else
if
(
q
.
match
(
/how to use/i
))
{
document
.
getElementById
(
'
helptext
'
).
classList
.
add
(
'
visible
'
);
document
.
getElementById
(
'
searchlinks
'
).
children
[
2
].
classList
.
add
(
'
active
'
);
}
else
{
sresults
.
innerHTML
=
''
;
...
...
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