Skip to content

Commit

Permalink
Fixed showing artist and album details from search page.
Browse files Browse the repository at this point in the history
Looks like this got broken in e3eddf2 where we
accidentally started quoting this.id when passed to the showX functions.
  • Loading branch information
kingosticks committed Mar 14, 2017
1 parent 6ae9a16 commit f666380
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mopidy_musicbox_webclient/static/js/library.js
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand All @@ -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>'
Expand Down

0 comments on commit f666380

Please sign in to comment.