mirror of
https://github.com/rembo10/headphones.git
synced 2026-07-20 16:03:59 +01:00
Grab the artist id for getArtistArt/getAlbumArt javascript queries from the img id rather than the artist href title
This commit is contained in:
@@ -109,7 +109,7 @@
|
||||
%>
|
||||
<tr class="grade${grade}">
|
||||
<td id="select"><input type="checkbox" name="${album['AlbumID']}" class="checkbox" /></td>
|
||||
<td id="albumart"><img class="albumArt" title="${album['AlbumID']}" height="64" width="64"></td>
|
||||
<td id="albumart"><img class="albumArt" id="${album['AlbumID']}" height="64" width="64"></td>
|
||||
<td id="albumname"><a href="albumPage?AlbumID=${album['AlbumID']}">${album['AlbumTitle']}</a></td>
|
||||
<td id="reldate">${album['ReleaseDate']}</td>
|
||||
<td id="type">${album['Type']}</td>
|
||||
@@ -161,7 +161,7 @@
|
||||
|
||||
function getAlbumArt() {
|
||||
$("table#album_table tr td#albumart").each(function(){
|
||||
var id = $(this).children('img').attr('title');
|
||||
var id = $(this).children('img').attr('id');
|
||||
var image = $(this).children('img');
|
||||
if ( !image.hasClass('done') ) {
|
||||
image.addClass('done');
|
||||
|
||||
Reference in New Issue
Block a user