Properly handle deselection in file lists.

This commit is contained in:
Daniel Lundqvist
2008-12-27 01:58:37 +08:00
committed by Pieter de Bie
parent 5d4a8c7a66
commit 47fa714714
2 changed files with 18 additions and 8 deletions
+5 -1
View File
@@ -23,8 +23,12 @@ var setState = function(state) {
}
var showFileChanges = function(file, cached) {
if (!file)
if (!file) {
$("title").innerHTML = "No file selected";
hideNotification();
setState("No file selected");
return;
}
hideNotification();
hideState();