]> source.dussan.org Git - nextcloud-server.git/commitdiff
only show the revert animation of draging a file when draged to an invalid position
authorRobin Appelman <icewind1991@gmail.com>
Thu, 7 Jul 2011 20:18:35 +0000 (22:18 +0200)
committerRobin Appelman <icewind1991@gmail.com>
Fri, 8 Jul 2011 17:52:51 +0000 (19:52 +0200)
files/js/files.js

index 431b49131ce1921c0c7f0c623754079dcd922e0c..19ce99a9bfb2243f908e1ecfd83534f5ed186491 100644 (file)
@@ -245,7 +245,7 @@ function formatDate(date){
 
 //options for file drag/dropp
 var dragOptions={
-       distance: 20, revert: true, opacity: 0.7,
+       distance: 20, revert: 'invalid', opacity: 0.7,
        stop: function(event, ui) {
                $('#fileList tr td.filename').addClass('ui-draggable');
        }