Browse Source

Fixed a caching-bug where it wasn't possible to return from search

Tobias Reich 9 years ago
parent
commit
6855f27893
2 changed files with 6 additions and 1 deletions
  1. 0 0
      dist/main.js
  2. 6 1
      src/scripts/lychee.js

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


+ 6 - 1
src/scripts/lychee.js

@@ -222,10 +222,15 @@ lychee.load = function() {
 
 	} else {
 
+		// Trash albums.json when filled with search results
+		if (search.code!=='') {
+			albums.json = null;
+			search.code = '';
+		}
+
 		// Trash data
 		album.json = null;
 		photo.json = null;
-		search.code = '';
 
 		// Show Albums
 		if (visible.album()) view.album.hide();

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