From e3e0a28b62dff84cee4ab76af38886cbb1ab846a Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 7 Jul 2011 22:18:35 +0200 Subject: [PATCH] only show the revert animation of draging a file when draged to an invalid position --- files/js/files.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); }