Group the .attr calls

master
jvoisin 6 years ago
parent 7824c3099f
commit 9a43b4f360
  1. 5
      airsonic-main/src/main/webapp/WEB-INF/jsp/artistMain.jsp

@ -69,7 +69,10 @@
if (artistInfo.artistBio && artistInfo.artistBio.biography) { if (artistInfo.artistBio && artistInfo.artistBio.biography) {
$("#artistBio").append(artistInfo.artistBio.biography); $("#artistBio").append(artistInfo.artistBio.biography);
if (artistInfo.artistBio.largeImageUrl) { if (artistInfo.artistBio.largeImageUrl) {
$("#artistImage").attr("src", artistInfo.artistBio.largeImageUrl); $("#artistImage").attr({
"src", artistInfo.artistBio.largeImageUrl,
"class": "fancy"
});
$("#artistImageZoom").attr("href", artistInfo.artistBio.largeImageUrl); $("#artistImageZoom").attr("href", artistInfo.artistBio.largeImageUrl);
$("#artistImage").show(); $("#artistImage").show();
$("#artistInfoTable").show(); $("#artistInfoTable").show();

Loading…
Cancel
Save