Don't show exif info when empty for older Lychee users (#194)

This commit is contained in:
Tobias Reich 2014-08-30 19:59:07 +02:00
parent b1607a0ed3
commit 0a5285ee93
3 changed files with 7 additions and 4 deletions

View File

@ -302,7 +302,8 @@ build = {
public,
editTitleHTML,
editDescriptionHTML,
infos;
infos,
exifHash = "";
infobox += "<div class='header'><h1>About</h1><a class='icon-remove-sign'></a></div>";
infobox += "<div class='wrapper'>";
@ -337,7 +338,9 @@ build = {
["Tags", build.tags(photoJSON.tags, forView)]
];
if ((photoJSON.takestamp+photoJSON.make+photoJSON.model+photoJSON.shutter+photoJSON.aperture+photoJSON.focal+photoJSON.iso)!="0") {
exifHash = photoJSON.takestamp+photoJSON.make+photoJSON.model+photoJSON.shutter+photoJSON.aperture+photoJSON.focal+photoJSON.iso;
if (exifHash!="0"&&exifHash!=="null") {
infos = infos.concat([
["", "Camera"],

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long