mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
Properly handle deselection in file lists.
This commit is contained in:
committed by
Pieter de Bie
parent
5d4a8c7a66
commit
47fa714714
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user