]> source.dussan.org Git - nextcloud-server.git/commitdiff
Make only writable files draggable
authorMichael Gapczynski <GapczynskiM@gmail.com>
Tue, 15 May 2012 00:41:06 +0000 (20:41 -0400)
committerMichael Gapczynski <GapczynskiM@gmail.com>
Tue, 15 May 2012 00:41:06 +0000 (20:41 -0400)
apps/files/js/files.js

index 918fcb62ee2702f320accbd70cf5cf0153a6061d..35d80b3cff22ac81d1145fe3ff12d648d0fcfd07 100644 (file)
@@ -40,7 +40,7 @@ $(document).ready(function() {
        $('#file_action_panel').attr('activeAction', false);
 
        //drag/drop of files
-       $('#fileList tr td.filename').draggable(dragOptions);
+       $('#fileList tr[data-write="true"] td.filename').draggable(dragOptions);
        $('#fileList tr[data-type="dir"][data-write="true"] td.filename').droppable(folderDropOptions);
        $('div.crumb:not(.last)').droppable(crumbDropOptions);
        $('ul#apps>li:first-child').data('dir','');