Fixed showing artist and album details from search page.
Looks like this got broken in e3eddf2e28 where we
accidentally started quoting this.id when passed to the showX functions.
This commit is contained in:
parent
6ae9a16a9c
commit
f6663800c3
@ -131,7 +131,7 @@
|
||||
|
||||
// Artist results
|
||||
var child = ''
|
||||
var template = '<li><a href="#" onclick="return library.showArtist(\'this.id\', mopidy)" id={id}><i class="{class}"></i> <strong>{name}</strong></a></li>'
|
||||
var template = '<li><a href="#" onclick="return library.showArtist(this.id, mopidy)" id={id}><i class="{class}"></i> <strong>{name}</strong></a></li>'
|
||||
var tokens
|
||||
|
||||
for (i = 0; i < results.artists.length; i++) {
|
||||
@ -155,7 +155,7 @@
|
||||
|
||||
// Album results
|
||||
child = ''
|
||||
template = '<li><a href="#" onclick="return library.showAlbum(\'this.id\', mopidy)" id="{albumId}">'
|
||||
template = '<li><a href="#" onclick="return library.showAlbum(this.id, mopidy)" id="{albumId}">'
|
||||
template += '<h5 data-role="heading"><i class="{class}"></i> {albumName}</h5>'
|
||||
template += '<p data-role="desc">{artistName}</p>'
|
||||
template += '</a></li>'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user