Commit 12bb2ec8 authored by flothoni's avatar flothoni

database.js; reformat array comparaison

link to #1469
parent 336691be
Pipeline #68545 canceled with stages
......@@ -128,9 +128,12 @@ Database.prototype = {
},
get_reads_btn_class: function(sequence_file_id, clone_id) {
if (this.list_clones_with_reads_getted.indexOf([sequence_file_id, clone_id.toString()]) != -1){
return "disabledClass"
}
for (var i = 0; i < this.list_clones_with_reads_getted.length; i++) {
var values = this.list_clones_with_reads_getted[i]
if (values[0] == sequence_file_id && values[1] == clone_id.toString()) {
return "disabledClass"
}
}
return ""
},
......
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