Commit b1c5d635 authored by flothoni's avatar flothoni Committed by Mikaël Salson
Browse files

semgenter; add a try/catch to div manipulation

Link to #2876
parent fdc71ab6
......@@ -939,8 +939,13 @@ Segment.prototype = {
});
// Allow to use button of the export menu
div = document.getElementById("export_fasta_align")
div.classList.remove("disabledClass")
try {
div = document.getElementById("export_fasta_align")
div.classList.remove("disabledClass")
} catch {
// Div doesn't exist (qunit only ?)
}
},
/**
......@@ -993,8 +998,12 @@ Segment.prototype = {
this.aligned = false
div = document.getElementById("export_fasta_align")
div.classList.add("disabledClass")
try {
div = document.getElementById("export_fasta_align")
div.classList.add("disabledClass")
} catch {
// Div doesn't exist (qunit only ?)
}
try{
if( selected.length ){
......
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