]> source.dussan.org Git - nextcloud-server.git/commitdiff
Used data-read and data-wite when binding drag and drop events
authorTom Needham <needham.thomas@gmail.com>
Mon, 2 Jan 2012 17:07:10 +0000 (17:07 +0000)
committerTom Needham <needham.thomas@gmail.com>
Mon, 2 Jan 2012 17:07:10 +0000 (17:07 +0000)
files/js/files.js

index 88a07a0776ef4576e0e0e83be9558d54176d4341..6044541d4aa0502ada45bdac87b12eca9fece050 100644 (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);