From 70eed8b107212f597a64f05e9376b48d9c4b2731 Mon Sep 17 00:00:00 2001 From: Tobias Reich Date: Sun, 20 Sep 2015 21:25:12 +0200 Subject: [PATCH] Code adjustments --- src/scripts/photo.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/scripts/photo.js b/src/scripts/photo.js index 7118c03..7bb4985 100644 --- a/src/scripts/photo.js +++ b/src/scripts/photo.js @@ -56,7 +56,7 @@ photo.load = function(photoID, albumID) { setTimeout(() => { lychee.content.show() - photo.preloadNext(photoID); + photo.preloadNext(photoID) }, 300) }) @@ -90,9 +90,9 @@ photo.parse = function() { photo.previous = function(animate) { if (photo.getID()!==false && - album.json && - album.json.content[photo.getID()] && - album.json.content[photo.getID()].previousPhoto!=='') { + album.json && + album.json.content[photo.getID()] && + album.json.content[photo.getID()].previousPhoto!=='') { let delay = 0 @@ -121,9 +121,9 @@ photo.previous = function(animate) { photo.next = function(animate) { if (photo.getID()!==false && - album.json && - album.json.content[photo.getID()] && - album.json.content[photo.getID()].nextPhoto!=='') { + album.json && + album.json.content[photo.getID()] && + album.json.content[photo.getID()].nextPhoto!=='') { let delay = 0