Browse Source

Fixed wrong header in photo-view

Tobias Reich 9 years ago
parent
commit
c26b4e4399
2 changed files with 3 additions and 2 deletions
  1. 3 2
      assets/js/view.js
  2. 0 0
      assets/min/main.js

+ 3 - 2
assets/js/view.js

@@ -53,12 +53,11 @@ view = {
 
 			var albumID = album.getID();
 
-			lychee.header.removeClass("view");
-
 			switch (mode) {
 
 				case "albums":
 
+					lychee.header.removeClass("view");
 					$("#tools_album, #tools_photo").hide();
 					$("#tools_albums").show();
 
@@ -66,6 +65,7 @@ view = {
 
 				case "album":
 
+					lychee.header.removeClass("view");
 					$("#tools_albums, #tools_photo").hide();
 					$("#tools_album").show();
 
@@ -84,6 +84,7 @@ view = {
 
 				case "photo":
 
+					lychee.header.addClass("view");
 					$("#tools_albums, #tools_album").hide();
 					$("#tools_photo").show();
 

File diff suppressed because it is too large
+ 0 - 0
assets/min/main.js


Some files were not shown because too many files changed in this diff