mirror of
https://github.com/nextcloud/server.git
synced 2025-10-26 19:21:34 +00:00
Trash: fix opening folders
This commit is contained in:
parent
923c51773a
commit
12fd47af39
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user