Commit 9874d3ee authored by Mathieu Giraud's avatar Mathieu Giraud
Browse files

js/segmenter.js: different classes for 'indel' and 'substitution'

parent 9cad5914
......@@ -1059,7 +1059,7 @@ Sequence.prototype = {
spanify_mutation: function (self, other) {
if (segment.aligned && self != other) {
var span = document.createElement('span');
span.className = 'substitution';
span.className = (self == '-' || other == '-' ? 'indel' : 'substitution');
span.setAttribute('other', other + '-' + segment.first_clone);
span.appendChild(document.createTextNode(self));
return span;
......
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