Browse Source

Full photo should always show the big photo #67

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

+ 7 - 1
src/scripts/photo.js

@@ -601,7 +601,13 @@ photo = {
 
 	getDirectLink: function() {
 
-		return $("#imageview #image").css("background-image").replace(/"/g,"").replace(/url\(|\)$/ig, "");
+		var url = "";
+
+		if (photo.json&&
+			photo.json.url&&
+			photo.json.url!=="") url = photo.json.url;
+
+		return url;
 
 	},