diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-02-27 20:37:50 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-02-27 20:37:50 +0100 |
commit | 923c51773ac6e010b5b2fdf57dca3d5c9f3ede0b (patch) | |
tree | 9ee5725b218ff30821af2590155627a984620776 | |
parent | f497970e308844d4785798b47bacf403c2854dd5 (diff) | |
download | nextcloud-server-923c51773ac6e010b5b2fdf57dca3d5c9f3ede0b.tar.gz nextcloud-server-923c51773ac6e010b5b2fdf57dca3d5c9f3ede0b.zip |
Trash: disable text editor from trash for now
-rw-r--r-- | apps/files_trashbin/js/trash.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files_trashbin/js/trash.js b/apps/files_trashbin/js/trash.js index 9526859ad00..bd29ad30d79 100644 --- a/apps/files_trashbin/js/trash.js +++ b/apps/files_trashbin/js/trash.js @@ -142,11 +142,15 @@ $(document).ready(function() { }); $('#fileList').on('click', 'td.filename a', function(event) { + 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; + } var type = $(this).parent().parent().data('type'); var permissions = $(this).parent().parent().data('permissions'); var action = FileActions.getDefault(mime, type, permissions); |