Commit f49cb3a0 authored by flothoni's avatar flothoni
Browse files

model.js; put a div modification into a try loop

This allow to not create error at qunit
link to #3689
parent 6e40151e
...@@ -890,11 +890,16 @@ changeAlleleNotation: function(alleleNotation) { ...@@ -890,11 +890,16 @@ changeAlleleNotation: function(alleleNotation) {
*/ */
colorize_multitag_star_icon: function(){ colorize_multitag_star_icon: function(){
var color = this.getColorSelectedClone() var color = this.getColorSelectedClone()
var div = document.getElementById("tag_icon__multiple") try {
if (color){ // put it in a try to not create errors on qunit
div.style.color = color; var div = document.getElementById("tag_icon__multiple")
} else { if (color){
div.style.color = "" div.style.color = color;
} else {
div.style.color = ""
}
} catch {
// ne rien faire.
} }
}, },
......
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