From f2cf4381799b25c55aed0c1fd9d36d58a89af272 Mon Sep 17 00:00:00 2001 From: Johannes Gilger Date: Sun, 12 Sep 2010 17:10:47 +0200 Subject: [PATCH] History-View: Clear list of files on showDiff This clears the list of files before redrawing the showDiff method. Fixes Lighthouse ticket #263 Signed-off-by: Johannes Gilger --- html/views/history/history.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/html/views/history/history.js b/html/views/history/history.js index b9520ca..c0ac4c6 100644 --- a/html/views/history/history.js +++ b/html/views/history/history.js @@ -219,6 +219,8 @@ var loadCommit = function(commitObject, currentRef) { var showDiff = function() { + $("files").innerHTML = ""; + // Callback for the diff highlighter. Used to generate a filelist var newfile = function(name1, name2, id, mode_change, old_mode, new_mode) { var img = document.createElement("img");