Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
hub
ViralHostRangeDB
Commits
518f9e81
Commit
518f9e81
authored
Jan 12, 2022
by
Bryan BRANCOTTE
Browse files
Ignore option with empty value i.e: the default one
Closing
#239
parent
d4e1f059
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/viralhostrange/viralhostrangedb/static/js/browse.js
View file @
518f9e81
...
...
@@ -47,7 +47,7 @@ $(document).ready(function(){
.
parentNode
.
querySelectorAll
(
'
[for="
'
+
radio_id
+
'
"]
'
)
.
forEach
(
e
=>
e
.
parentNode
.
removeChild
(
e
));
if
(
e
.
target
.
id
!=
radio_id
){
if
(
e
.
target
.
value
!=
''
){
add_badge
(
radio_id
,
e
.
target
.
parentNode
.
querySelectorAll
(
"
label
"
)[
0
].
textContent
);
}
}
else
{
...
...
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