Commit e7c11673 authored by Bryan  BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

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

closes #242
parent 8b0df125
......@@ -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{
......
Supports Markdown
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