diff options
-rw-r--r-- | apps/media/js/collection.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/media/js/collection.js b/apps/media/js/collection.js index b55bbe5107c..6525df55c71 100644 --- a/apps/media/js/collection.js +++ b/apps/media/js/collection.js @@ -231,6 +231,13 @@ Collection={ var newRow=tr; } newRow.find('td.title a').text(song.name); + newRow.find('td.title a').click(function(event){ + event.preventDefault(); + PlayList.add(song); + PlayList.play(0); + Collection.parent.find('tr').removeClass('active'); + $('tr[data-title="'+song.name+'"]').addClass('active'); + }); if(i>0){ lastRow.after(newRow); } |