Skip to content
Snippets Groups Projects
Commit 396f9733 authored by ale's avatar ale
Browse files

cb fix

parent eed53d98
No related branches found
No related tags found
No related merge requests found
...@@ -299,6 +299,8 @@ djr.Player.prototype.search = function(query) { ...@@ -299,6 +299,8 @@ djr.Player.prototype.search = function(query) {
djr.Player.prototype.setChunkHtml = function(chunk, chunk_id, songs_html) { djr.Player.prototype.setChunkHtml = function(chunk, chunk_id, songs_html) {
var inner_html = chunk.wrapHtml(chunk_id, songs_html); var inner_html = chunk.wrapHtml(chunk_id, songs_html);
$('#playlistDiv').append(inner_html); $('#playlistDiv').append(inner_html);
var player = this;
var chunk_div = '#chunk_' + chunk_id; var chunk_div = '#chunk_' + chunk_id;
$(chunk_div + ' .song_a').click(function() { $(chunk_div + ' .song_a').click(function() {
player.play($(this).attr('id').substr(5)); player.play($(this).attr('id').substr(5));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment