Skip to content

Commit f2cf438

Browse files
heipeibrotherbard
authored andcommitted
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 <[email protected]>
1 parent 2852ecb commit f2cf438

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

html/views/history/history.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,8 @@ var loadCommit = function(commitObject, currentRef) {
219219

220220
var showDiff = function() {
221221

222+
$("files").innerHTML = "";
223+
222224
// Callback for the diff highlighter. Used to generate a filelist
223225
var newfile = function(name1, name2, id, mode_change, old_mode, new_mode) {
224226
var img = document.createElement("img");

0 commit comments

Comments
 (0)