Skip to content

Commit fe54a46

Browse files
heipeipieter
authored andcommitted
history.js: Fix display of mode-change and rename
Pieter rewrote history.js in cfbcfc1, avoiding the use of .innerHTML for performance reasons. This broke the HTML-arrows when dealing with renames / mode-changes because createTextNode quotes them. This is a simple work-around. Signed-off-by: Johannes Gilger <[email protected]>
1 parent 3b6c2a3 commit fe54a46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

html/views/history/history.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ var showDiff = function() {
207207
buttonType = "changed"
208208
link.appendChild(document.createTextNode(name1));
209209
if (mode_change)
210-
p.appendChild(document.createTextNode("mode " + old_mode + " &#8594; " + new_mode));
210+
p.appendChild(document.createTextNode(" mode " + old_mode + " -> " + new_mode));
211211
}
212212
else if (name1 == "/dev/null") {
213213
buttonType = "created";
@@ -220,7 +220,7 @@ var showDiff = function() {
220220
else {
221221
buttonType = "renamed";
222222
link.appendChild(document.createTextNode(name2));
223-
p.insertBefore(document.createTextNode(name1), link);
223+
p.insertBefore(document.createTextNode(name1 + " -> "), link);
224224
}
225225
button.setAttribute("class", "button " + buttonType);
226226
button.appendChild(document.createTextNode(buttonType));

0 commit comments

Comments
 (0)