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

This commit is contained in:
Tobias Reich 2014-12-05 15:42:32 +01:00
parent e6c109269e
commit 6855f27893
2 changed files with 6 additions and 1 deletions

BIN
dist/main.js vendored

Binary file not shown.

View File

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