Commit ad21b2d7 authored by Mathieu Giraud's avatar Mathieu Giraud
Browse files

js/clone.js: isWarned() returns 'ok'/'info' when there are cloneDB results

parent fc262a81
......@@ -77,6 +77,13 @@ Clone.prototype = {
* @return {string} a warning class is set on this clone
if (this.hasSeg('clonedb')) {
if (typeof(this.seg['clonedb']['']) != 'undefined') // TODO: use a stored number of occurrences
return 'ok'
return 'info'
if (this.coverage < this.COVERAGE_WARN) return 'warning';
if (typeof(this.eValue) != undefined && this.eValue > this.EVALUE_WARN) return 'warning';
return false;
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