Browse Source

Code adjustments

Tobias Reich 8 years ago
parent
commit
70eed8b107
1 changed files with 7 additions and 7 deletions
  1. 7 7
      src/scripts/photo.js

+ 7 - 7
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