diff options
-rw-r--r-- | apps/files_trashbin/js/trash.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/files_trashbin/js/trash.js b/apps/files_trashbin/js/trash.js index bd29ad30d79..39e76e10c9c 100644 --- a/apps/files_trashbin/js/trash.js +++ b/apps/files_trashbin/js/trash.js @@ -142,12 +142,14 @@ $(document).ready(function() { }); $('#fileList').on('click', 'td.filename a', function(event) { - event.preventDefault(); + var mime = $(this).parent().parent().data('mime'); + if (mime !== 'httpd/unix-directory') { + event.preventDefault(); + } var filename = $(this).parent().parent().attr('data-file'); var tr = $('tr').filterAttr('data-file',filename); var renaming = tr.data('renaming'); if(!renaming && !FileList.isLoading(filename)){ - var mime = $(this).parent().parent().data('mime'); if(mime.substr(0, 5) === 'text/'){ //no texteditor for now return; } |