From 6855f27893d6c0a0681f692990a59afe92503a4e Mon Sep 17 00:00:00 2001 From: Tobias Reich Date: Fri, 5 Dec 2014 15:42:32 +0100 Subject: [PATCH] Fixed a caching-bug where it wasn't possible to return from search --- dist/main.js | Bin 169610 -> 169647 bytes src/scripts/lychee.js | 7 ++++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/dist/main.js b/dist/main.js index 96663fb77a4ca1501f2f539f0efdcb3d4e6bbab0..bd43b8563b5774a24e5a7719e9235d32083cb946 100644 GIT binary patch delta 39 xcmV+?0NDSEtqQNL3V^f$(%+YuBmyLt+#~`H0V$WeBmyCqZ{Gn3w+Y|@fwn%t4>te+ delta 22 ecmZ3#maA(mSHl*@OZTTgRAJKJuJ(Yja~lA88VXnd diff --git a/src/scripts/lychee.js b/src/scripts/lychee.js index 085ee20..239e4c8 100644 --- a/src/scripts/lychee.js +++ b/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();