Used data-read and data-wite when binding drag and drop events

This commit is contained in:
Tom Needham 2012-01-02 17:07:10 +00:00
parent 39a7bd9c00
commit 0730077840

View file

@ -11,8 +11,8 @@ $(document).ready(function() {
$('#file_action_panel').attr('activeAction', false);
//drag/drop of files
$('#fileList tr[data-file!="Shared"] td.filename').draggable(dragOptions);
$('#fileList tr[data-type="dir"][data-file!="Shared"] td.filename').droppable(folderDropOptions);
$('#fileList tr td.filename').draggable(dragOptions);
$('#fileList tr[data-type="dir"][data-read="false"][data-write="false"] td.filename').droppable(folderDropOptions);
$('div.crumb').droppable(crumbDropOptions);
$('ul#apps>li:first-child').data('dir','');
$('ul#apps>li:first-child').droppable(crumbDropOptions);