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:
Nick Steel 2017-03-14 23:46:30 +00:00
parent 6ae9a16a9c
commit f6663800c3

View File

@ -131,7 +131,7 @@
// Artist results // Artist results
var child = '' 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 var tokens
for (i = 0; i < results.artists.length; i++) { for (i = 0; i < results.artists.length; i++) {
@ -155,7 +155,7 @@
// Album results // Album results
child = '' 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 += '<h5 data-role="heading"><i class="{class}"></i> {albumName}</h5>'
template += '<p data-role="desc">{artistName}</p>' template += '<p data-role="desc">{artistName}</p>'
template += '</a></li>' template += '</a></li>'