Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
9874d3ee
Commit
9874d3ee
authored
Aug 02, 2016
by
Mathieu Giraud
Browse files
js/segmenter.js: different classes for 'indel' and 'substitution'
parent
9cad5914
Changes
1
Hide whitespace changes
Inline
Side-by-side
browser/js/segmenter.js
View file @
9874d3ee
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment