Trash: disable text editor from trash for now
This commit is contained in:
parent
f497970e30
commit
923c51773a
|
@ -142,11 +142,15 @@ $(document).ready(function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#fileList').on('click', 'td.filename a', function(event) {
|
$('#fileList').on('click', 'td.filename a', function(event) {
|
||||||
|
event.preventDefault();
|
||||||
var filename = $(this).parent().parent().attr('data-file');
|
var filename = $(this).parent().parent().attr('data-file');
|
||||||
var tr = $('tr').filterAttr('data-file',filename);
|
var tr = $('tr').filterAttr('data-file',filename);
|
||||||
var renaming = tr.data('renaming');
|
var renaming = tr.data('renaming');
|
||||||
if(!renaming && !FileList.isLoading(filename)){
|
if(!renaming && !FileList.isLoading(filename)){
|
||||||
var mime = $(this).parent().parent().data('mime');
|
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 type = $(this).parent().parent().data('type');
|
||||||
var permissions = $(this).parent().parent().data('permissions');
|
var permissions = $(this).parent().parent().data('permissions');
|
||||||
var action = FileActions.getDefault(mime, type, permissions);
|
var action = FileActions.getDefault(mime, type, permissions);
|
||||||
|
|
Loading…
Reference in New Issue