Skip to content
GitLab
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
e7c11673
Commit
e7c11673
authored
Feb 03, 2022
by
Bryan BRANCOTTE
Browse files
Ignore option with empty value i.e: the default one
closes
#242
parent
8b0df125
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/viralhostrange/viralhostrangedb/static/js/virus_or_host_detail.js
View file @
e7c11673
...
...
@@ -24,7 +24,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
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