Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
UGL
website
Commits
dd44e70e
Commit
dd44e70e
authored
4 years ago
by
Patrick
Browse files
Options
Download
Email Patches
Plain Diff
fixed search
parent
c7ec381d
Pipeline
#3277
passed with stage
in 30 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
public/js/search.js
+4
-5
public/js/search.js
with
4 additions
and
5 deletions
+4
-5
public/js/search.js
+
4
-
5
View file @
dd44e70e
...
...
@@ -10,8 +10,7 @@ const options = {
const
options_paper
=
{
includeScore
:
true
,
// Search in `author` and in `tags` array
keys
:
[
"
item.title
"
,
"
item.keywords
"
,
"
item.author.firstName
"
,
"
item.author.lastName
"
keys
:
[
"
item.title
"
,
"
item.keywords
"
,
"
item.authors.lastName
"
,
"
item.authors.firstName
"
]
}
...
...
@@ -35,7 +34,7 @@ function search() {
}
function
search_paper
()
{
const
fuse
=
new
Fuse
(
stuff_paper
,
options
);
const
fuse
=
new
Fuse
(
stuff_paper
,
options
_paper
);
searchanswer_paper
=
fuse
.
search
(
document
.
getElementById
(
"
search-input_paper
"
).
value
)
var
new_row
=
document
.
getElementById
(
"
cont_paper
"
)
...
...
@@ -197,8 +196,8 @@ input.addEventListener("keyup", function (event) {
}
});
var
input
=
document
.
getElementById
(
"
search-input_paper
"
);
input
.
addEventListener
(
"
keyup
"
,
function
(
event
)
{
var
input
2
=
document
.
getElementById
(
"
search-input_paper
"
);
input
2
.
addEventListener
(
"
keyup
"
,
function
(
event
)
{
if
(
event
.
keyCode
===
13
)
{
event
.
preventDefault
();
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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