diff options
author | Tom Needham <needham.thomas@gmail.com> | 2012-01-02 17:07:10 +0000 |
---|---|---|
committer | Tom Needham <needham.thomas@gmail.com> | 2012-01-02 17:07:10 +0000 |
commit | 0730077840a82a67a491780257089dfe7c7f64e2 (patch) | |
tree | 8166ee758dd3610213bc6bb6e75bbf5923fe26d7 /files | |
parent | 39a7bd9c00a66ef82c709eeba72ec71c23e462e6 (diff) | |
download | nextcloud-server-0730077840a82a67a491780257089dfe7c7f64e2.tar.gz nextcloud-server-0730077840a82a67a491780257089dfe7c7f64e2.zip |
Used data-read and data-wite when binding drag and drop events
Diffstat (limited to 'files')
-rw-r--r-- | files/js/files.js | 4 |
1 files 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); |