diff options
author | Robin Appelman <icewind1991@gmail.com> | 2012-01-12 01:18:27 +0100 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2012-01-12 01:18:27 +0100 |
commit | 25213a790d79c7d8f5c35c757ffd531243b2bc99 (patch) | |
tree | da9b8a8ede11e6a11aceca9deef47d814c41b62a /apps/media/js | |
parent | 1b5d206ca77c68542ab381fb6529a5648ddf9713 (diff) | |
download | nextcloud-server-25213a790d79c7d8f5c35c757ffd531243b2bc99.tar.gz nextcloud-server-25213a790d79c7d8f5c35c757ffd531243b2bc99.zip |
fix event handler after re-expanding an artist in collection view
Diffstat (limited to 'apps/media/js')
-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); } |