Browse Source

Added downloadable to Infobox and improved naming

Tobias Reich 10 years ago
parent
commit
b66bdce28d
3 changed files with 19 additions and 14 deletions
  1. 19 14
      assets/js/build.js
  2. 0 0
      assets/min/main.js
  3. 0 0
      assets/min/view.js

+ 19 - 14
assets/js/build.js

@@ -309,13 +309,13 @@ build = {
 
 		switch (photoJSON.public) {
 			case "0":
-				public = "Private";
+				public = "No";
 				break;
 			case "1":
-				public = "Public";
+				public = "Yes";
 				break;
 			case "2":
-				public = "Public (Album)";
+				public = "Yes (Album)";
 				break;
 			default:
 				public = "-";
@@ -354,7 +354,7 @@ build = {
 
 		infos = infos.concat([
 			["", "Share"],
-			["Visibility", public]
+			["Public", public]
 		]);
 
 		$.each(infos, function(index) {
@@ -401,8 +401,9 @@ build = {
 		if (!albumJSON) return "";
 
 		var infobox = "",
-			public,
-			password,
+			public = "-",
+			password = "-",
+			downloadable = "-",
 			editTitleHTML,
 			editDescriptionHTML,
 			infos;
@@ -412,13 +413,10 @@ build = {
 
 		switch (albumJSON.public) {
 			case "0":
-				public = "Private";
+				public = "No";
 				break;
 			case "1":
-				public = "Public";
-				break;
-			default:
-				public = "-";
+				public = "Yes";
 				break;
 		}
 
@@ -429,8 +427,14 @@ build = {
 			case true:
 				password = "Yes";
 				break;
-			default:
-				password = "-";
+		}
+
+		switch (albumJSON.downloadable) {
+			case "0":
+				downloadable = "No";
+				break;
+			case "1":
+				downloadable = "Yes";
 				break;
 		}
 
@@ -445,7 +449,8 @@ build = {
 			["Created", albumJSON.sysdate],
 			["Images", albumJSON.num],
 			["", "Share"],
-			["Visibility", public],
+			["Public", public],
+			["Downloadable", downloadable],
 			["Password", password]
 		];
 

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


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


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