diff options
author | Tom Needham <needham.thomas@gmail.com> | 2011-10-03 22:59:40 +0100 |
---|---|---|
committer | Tom Needham <needham.thomas@gmail.com> | 2011-10-03 22:59:40 +0100 |
commit | 02d7b1a1fc8f4bf62bfb973acfa0ee19ffa469ff (patch) | |
tree | dbf59263769a549a09f2aa5af3ccf2c9571bb125 /files/js | |
parent | 0825073e8cac2a654bbc89b99b5a83cdfee7a836 (diff) | |
parent | e8c6252a4ce1151b11f1faa8e602c06aae4294d8 (diff) | |
download | nextcloud-server-02d7b1a1fc8f4bf62bfb973acfa0ee19ffa469ff.tar.gz nextcloud-server-02d7b1a1fc8f4bf62bfb973acfa0ee19ffa469ff.zip |
Added breadcrumb and control bar.
Diffstat (limited to 'files/js')
-rw-r--r-- | files/js/fileactions.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/files/js/fileactions.js b/files/js/fileactions.js index 24e01c34db7..81aedbd98b9 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(); }); }, @@ -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){ |