Fix displaying author

This commit is contained in:
Jan-Lukas Else 2018-02-14 19:10:58 +01:00
parent 62bfb2059f
commit f63385d1d1
1 changed files with 3 additions and 1 deletions

View File

@ -33,7 +33,9 @@
}
function setAuthor(author, url) {
if (author && url) $('#viewerAuthor').html('<a href="' + url + '">' + author + '</a><br>');
if (author && url && author != "" && url != "") $('#viewerAuthor').html('<a href="' + url + '">' + author + '</a><br>');
else if (author && author != "") $('#viewerAuthor').html(author + '<br>');
if (url && url != "") $('#viewerAuthor').html('<a href="' + url + '"><i>Author</i></a><br>');
else $('#viewerAuthor').html('');
}