remove all signs of portal photo submitter info when there's no photo submitter information supplied

for #514
This commit is contained in:
Jon Atkins
2013-08-29 01:10:44 +01:00
parent d1ce8870ba
commit 90047abee0
2 changed files with 5 additions and 3 deletions

View File

@ -67,7 +67,7 @@ window.renderPortalDetails = function(guid) {
submitterSpan = '<span class="none">';
}
portalDetailedDescription += '<tr><th>Photo by:</th><td>' + submitterSpan
+ escapeHtmlSpecialChars(portalDetailObj.submitter.name) + '</span> (' + portalDetailObj.submitter.voteCount + ' votes)</td></tr>';
+ escapeHtmlSpecialChars(portalDetailObj.submitter.name) + '</span>'+(portalDetailObj.submitter.voteCount !== undefined ? ' (' + portalDetailObj.submitter.voteCount + ' votes)' : '')+'</td></tr>';
}
if(portalDetailObj.submitter.link.length > 0) {
portalDetailedDescription += '<tr><th>Photo from:</th><td><a href="'