Browse Source

Hide download photo when downloadable is disabled

Tobias Reich 10 years ago
parent
commit
0cf8e97190
2 changed files with 2 additions and 4 deletions
  1. 2 4
      assets/js/contextMenu.js
  2. 0 0
      assets/min/main.js

+ 2 - 4
assets/js/contextMenu.js

@@ -223,10 +223,8 @@ contextMenu = {
 			function() { photo.getArchive(photoID) }
 		];
 
-		items = [
-			["<a class='icon-resize-full'></a> Full Photo", 0],
-			["<a class='icon-circle-arrow-down'></a> Download", 1]
-		];
+		items = [["<a class='icon-resize-full'></a> Full Photo", 0]];
+		if ((album.json&&album.json.downloadable&&album.json.downloadable==="1"&&lychee.publicMode)||!lychee.publicMode) items.push(["<a class='icon-circle-arrow-down'></a> Download", 1]);
 
 		contextMenu.show(items, mouse_x, mouse_y, "right");
 

File diff suppressed because it is too large
+ 0 - 0
assets/min/main.js


Some files were not shown because too many files changed in this diff