Shared folder no longer draggable or droppable
This commit is contained in:
parent
5a5b216ba0
commit
2c4ab355ac
|
@ -11,8 +11,8 @@ $(document).ready(function() {
|
||||||
$('#file_action_panel').attr('activeAction', false);
|
$('#file_action_panel').attr('activeAction', false);
|
||||||
|
|
||||||
//drag/drop of files
|
//drag/drop of files
|
||||||
$('#fileList tr td.filename').draggable(dragOptions);
|
$('#fileList tr[data-file!=Shared] td.filename').draggable(dragOptions);
|
||||||
$('#fileList tr[data-type="dir"] td.filename').droppable(folderDropOptions);
|
$('#fileList tr[data-type="dir"][data-file!=Shared] td.filename').droppable(folderDropOptions);
|
||||||
$('div.crumb').droppable(crumbDropOptions);
|
$('div.crumb').droppable(crumbDropOptions);
|
||||||
$('ul#apps>li:first-child').data('dir','');
|
$('ul#apps>li:first-child').data('dir','');
|
||||||
$('ul#apps>li:first-child').droppable(crumbDropOptions);
|
$('ul#apps>li:first-child').droppable(crumbDropOptions);
|
||||||
|
@ -70,7 +70,9 @@ $(document).ready(function() {
|
||||||
procesSelection();
|
procesSelection();
|
||||||
} else {
|
} else {
|
||||||
var filename=$(this).parent().parent().attr('data-file');
|
var filename=$(this).parent().parent().attr('data-file');
|
||||||
if(!FileList.isLoading(filename)){
|
var tr=$('tr').filterAttr('data-file',filename);
|
||||||
|
var renaming=tr.data('renaming')
|
||||||
|
if(!renaming && !FileList.isLoading(filename)){
|
||||||
var mime=$(this).parent().parent().data('mime');
|
var mime=$(this).parent().parent().data('mime');
|
||||||
var type=$(this).parent().parent().data('type');
|
var type=$(this).parent().parent().data('type');
|
||||||
var action=FileActions.getDefault(mime,type);
|
var action=FileActions.getDefault(mime,type);
|
||||||
|
|
Loading…
Reference in New Issue