Commit 518f9e81 authored by Bryan  BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

Ignore option with empty value i.e: the default one

Closing #239
parent d4e1f059
......@@ -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{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment