summaryrefslogtreecommitdiffstats
path: root/apps/media/js/playlist.js
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-07-30 00:05:44 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-07-30 00:05:44 +0200
commitaa7c6f057bafceabfcfcedf8882044921e96f53b (patch)
tree915a213889c723e431250e26401ed40a87aee995 /apps/media/js/playlist.js
parent94e25ecb0c2dcd895fb080b3b2cf296d58676e17 (diff)
downloadnextcloud-server-aa7c6f057bafceabfcfcedf8882044921e96f53b.tar.gz
nextcloud-server-aa7c6f057bafceabfcfcedf8882044921e96f53b.zip
fix issue with selecting songs in playlist
Diffstat (limited to 'apps/media/js/playlist.js')
-rw-r--r--apps/media/js/playlist.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/media/js/playlist.js b/apps/media/js/playlist.js
index 570e725b57e..c278c507fab 100644
--- a/apps/media/js/playlist.js
+++ b/apps/media/js/playlist.js
@@ -46,7 +46,7 @@ PlayList.render=function(){
event.stopPropagation();
if($(this).attr('checked')){
$(this).parent().parent().addClass('selected');
- if($('td.name input:checkbox').length==$('td.name input:checkbox:checked').length){
+ if($('tbody td.name input:checkbox').length==$('tbody td.name input:checkbox:checked').length){
$('#selectAll').attr('checked',true);
}
}else{
@@ -59,7 +59,7 @@ PlayList.render=function(){
}
}
PlayList.getSelected=function(){
- return $('td.name input:checkbox:checked').parent().parent();
+ return $('tbody td.name input:checkbox:checked').parent().parent();
}
PlayList.hide=function(){
$('#playlist').hide();
@@ -71,12 +71,12 @@ $(document).ready(function(){
$('#selectAll').click(function(){
if($(this).attr('checked')){
// Check all
- $('td.name input:checkbox').attr('checked', true);
- $('td.name input:checkbox').parent().parent().addClass('selected');
+ $('tbody td.name input:checkbox').attr('checked', true);
+ $('tbody td.name input:checkbox').parent().parent().addClass('selected');
}else{
// Uncheck all
- $('td.name input:checkbox').attr('checked', false);
- $('td.name input:checkbox').parent().parent().removeClass('selected');
+ $('tbody td.name input:checkbox').attr('checked', false);
+ $('tbody td.name input:checkbox').parent().parent().removeClass('selected');
}
procesSelection();
});