Browse Source

Fixed a bug with the back button and zero public listed albums

Tobias Reich 10 years ago
parent
commit
8974b7c2aa
2 changed files with 6 additions and 2 deletions
  1. 6 2
      assets/js/view.js
  2. 0 0
      assets/min/main.js

+ 6 - 2
assets/js/view.js

@@ -144,8 +144,12 @@ view = {
 
 				}
 
-				if (smartData===""&&albumsData==="") $("body").append(build.no_content("picture"));
-				else lychee.content.html(smartData + albumsData);
+				if (smartData===""&&albumsData==="") {
+					lychee.content.html('');
+					$("body").append(build.no_content("picture"));
+				} else {
+					lychee.content.html(smartData + albumsData);
+				}
 
 				$("img[data-type!='nonretina']").retina();
 

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