From 0730077840a82a67a491780257089dfe7c7f64e2 Mon Sep 17 00:00:00 2001 From: Tom Needham Date: Mon, 2 Jan 2012 17:07:10 +0000 Subject: [PATCH] Used data-read and data-wite when binding drag and drop events --- files/js/files.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/js/files.js b/files/js/files.js index 88a07a0776e..6044541d4aa 100644 --- a/files/js/files.js +++ b/files/js/files.js @@ -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); -- 2.39.5