Browse Source

Hide download button when downloadable is off

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

+ 1 - 0
assets/js/view.js

@@ -64,6 +64,7 @@ view = {
 					$("#tools_albums, #tools_photo").hide();
 					$("#tools_album").show();
 					album.json.content === false ? $("#button_archive").hide() : $("#button_archive").show();
+					if (lychee.publicMode&&album.json.downloadable==="0") $("#button_archive").hide();
 					if (albumID==="s"||albumID==="f"||albumID==="r") {
 						$("#button_info_album, #button_trash_album, #button_share_album").hide();
 					} else if (albumID==="0") {

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