summaryrefslogtreecommitdiffstats
path: root/files/js
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-07-07 02:28:57 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-07-07 02:28:57 +0200
commitf22e39a5745fcdf745aa2af0917ca62ef7598904 (patch)
tree7bce411a4be19803d39672225ead518d9ca71d83 /files/js
parent45bda0997f4cd591c4dab83a5a9bd73de2e98c3e (diff)
downloadnextcloud-server-f22e39a5745fcdf745aa2af0917ca62ef7598904.tar.gz
nextcloud-server-f22e39a5745fcdf745aa2af0917ca62ef7598904.zip
highlight selected files in the filebrowser
Diffstat (limited to 'files/js')
-rw-r--r--files/js/files.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/files/js/files.js b/files/js/files.js
index 2434fceff43..408bd6e48a0 100644
--- a/files/js/files.js
+++ b/files/js/files.js
@@ -31,15 +31,19 @@ $(document).ready(function() {
// Sets the select_all checkbox behaviour :
$('#select_all').click(function() {
- if($(this).attr('checked'))
+ if($(this).attr('checked')){
// Check all
$('td.selection input:checkbox').attr('checked', true);
- else
+ $('td.selection input:checkbox').parent().parent().addClass('selected');
+ }else{
// Uncheck all
$('td.selection input:checkbox').attr('checked', false);
+ $('td.selection input:checkbox').parent().parent().removeClass('selected');
+ }
});
$('td.selection input:checkbox').live('click',function() {
+ $(this).parent().parent().toggleClass('selected');
if(!$(this).attr('checked')){
$('#select_all').attr('checked',false);
}else{