From: Robin Appelman Date: Thu, 7 Jul 2011 20:18:35 +0000 (+0200) Subject: only show the revert animation of draging a file when draged to an invalid position X-Git-Tag: v3.0~267^2~415^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e3e0a28b62dff84cee4ab76af38886cbb1ab846a;p=nextcloud-server.git only show the revert animation of draging a file when draged to an invalid position --- diff --git a/files/js/files.js b/files/js/files.js index 431b49131ce..19ce99a9bfb 100644 --- a/files/js/files.js +++ b/files/js/files.js @@ -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'); }