mirror of
https://github.com/github/semantic.git
synced 2024-11-25 02:58:36 +03:00
Assign classes to insertions.
This commit is contained in:
parent
ee1d00a74c
commit
6a76b1d97e
@ -228,7 +228,12 @@
|
||||
return element || "";
|
||||
});
|
||||
var after = diff.map(function(value) {
|
||||
return value.after != null ? termToDOM(value.after, "after", json["after"]) : "";
|
||||
var element;
|
||||
if (value.after != null) {
|
||||
element = termToDOM(value.after, "after", json["after"]);
|
||||
element.classList.add("insert")
|
||||
}
|
||||
return element || "";
|
||||
});
|
||||
document.getElementById("before").appendChild(diffToDOM(before, "before", json["before"]));
|
||||
document.getElementById("after").appendChild(diffToDOM(after, "after", json["after"]));
|
||||
|
Loading…
Reference in New Issue
Block a user