From 1639a1ca49aef77cb1b58364fb928a63fa4a99a0 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 28 Sep 2011 22:20:26 +0200 Subject: fix persistent playlist for media player --- files/js/fileactions.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'files/js') diff --git a/files/js/fileactions.js b/files/js/fileactions.js index 4ff8562fef3..ddb16ecd5fd 100644 --- a/files/js/fileactions.js +++ b/files/js/fileactions.js @@ -53,7 +53,7 @@ FileActions={ }, display:function(parent){ FileActions.currentFile=parent; - $('.action').remove(); + $('#fileList .action').remove(); var actions=FileActions.get(FileActions.getCurrentMimeType(),FileActions.getCurrentType()); var file=FileActions.getCurrentFile(); if($('tr[data-file="'+file+'"]').data('renaming')){ @@ -104,12 +104,12 @@ FileActions={ }); parent.parent().children().last().append(element); } - $('.action').hide(); - $('.action').fadeIn(200); + $('#fileList .action').hide(); + $('#fileList .action').fadeIn(200); return false; }, hide:function(){ - $('.action').fadeOut(200,function(){ + $('#fileList .action').fadeOut(200,function(){ $(this).remove(); }); }, -- cgit v1.2.3 From 51e68729de3402fd7bc90e123c432538659b6b31 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 30 Sep 2011 10:57:39 +0200 Subject: escape file and directory names when downloading files --- files/js/fileactions.js | 2 +- files/templates/part.list.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'files/js') diff --git a/files/js/fileactions.js b/files/js/fileactions.js index ddb16ecd5fd..0089c235ebf 100644 --- a/files/js/fileactions.js +++ b/files/js/fileactions.js @@ -125,7 +125,7 @@ FileActions={ } FileActions.register('all','Download',function(){return OC.imagePath('core','actions/download')},function(filename){ - window.location='ajax/download.php?files='+filename+'&dir='+$('#dir').val(); + window.location='ajax/download.php?files='+encodeURIComponent(filename)+'&dir='+encodeURIComponent($('#dir').val()); }); FileActions.register('all','Delete',function(){return OC.imagePath('core','actions/delete')},function(filename){ diff --git a/files/templates/part.list.php b/files/templates/part.list.php index 398094f56d0..6bf5efe2fb2 100644 --- a/files/templates/part.list.php +++ b/files/templates/part.list.php @@ -8,7 +8,7 @@ '> - + -- cgit v1.2.3