From 12fd47af395d5d5fdbcc1da7f8df4feccbea9fd9 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 28 Feb 2013 13:32:08 +0100 Subject: Trash: fix opening folders --- apps/files_trashbin/js/trash.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'apps/files_trashbin/js') 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; } -- cgit v1.2.3