From fe54a464f7c88174a9e4f3d84dc897cbd65014b4 Mon Sep 17 00:00:00 2001 From: Johannes Gilger Date: Thu, 28 May 2009 14:51:30 +0200 Subject: [PATCH] history.js: Fix display of mode-change and rename Pieter rewrote history.js in cfbcfc1f38acf3, 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 --- html/views/history/history.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html/views/history/history.js b/html/views/history/history.js index b8d76ac..087f802 100644 --- a/html/views/history/history.js +++ b/html/views/history/history.js @@ -207,7 +207,7 @@ var showDiff = function() { buttonType = "changed" link.appendChild(document.createTextNode(name1)); if (mode_change) - p.appendChild(document.createTextNode("mode " + old_mode + " → " + new_mode)); + p.appendChild(document.createTextNode(" mode " + old_mode + " -> " + new_mode)); } else if (name1 == "/dev/null") { buttonType = "created"; @@ -220,7 +220,7 @@ var showDiff = function() { else { buttonType = "renamed"; link.appendChild(document.createTextNode(name2)); - p.insertBefore(document.createTextNode(name1), link); + p.insertBefore(document.createTextNode(name1 + " -> "), link); } button.setAttribute("class", "button " + buttonType); button.appendChild(document.createTextNode(buttonType));