Commit b66bdce2 authored by Tobias Reich's avatar Tobias Reich
Browse files

Added downloadable to Infobox and improved naming

parent ac0850d7
......@@ -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]
];
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment