summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-11-17 09:36:01 +0100
committerAleksander Machniak <alec@alec.pl>2014-11-17 09:36:01 +0100
commit3d8745bd0ba6a98ccac1b32a4c2fa934302d4d58 (patch)
tree3c0599ba2892f52491e5cca389e3834ee8718a69
parenta4cdb601b70b859ae0c1fffd22cdaad2cb03113a (diff)
Fix drag-n-drop to folders expanded while dragging (#1490157)
-rw-r--r--CHANGELOG4
-rw-r--r--program/js/treelist.js6
2 files changed, 7 insertions, 3 deletions
diff --git a/CHANGELOG b/CHANGELOG
index a9875fd4c..3a70bd0d0 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,6 +1,10 @@
CHANGELOG Roundcube Webmail
===========================
+- Fix drag-n-drop to folders expanded while dragging (#1490157)
+
+RELEASE 1.1-beta
+----------------
- Fix skin path handling in plugin context (#1488967)
- Prevent memory exhaustion on image resizing with GD on Windows (#1489937)
- Add plugin hook for database table name lookups as requested in #1489837
diff --git a/program/js/treelist.js b/program/js/treelist.js
index c034f77b8..08e0e686d 100644
--- a/program/js/treelist.js
+++ b/program/js/treelist.js
@@ -911,9 +911,9 @@ function rcube_treelist_widget(node, p)
* When dragging starts, compute absolute bounding boxes of the list and it's items
* for faster comparisons while mouse is moving
*/
- function drag_start()
+ function drag_start(force)
{
- if (drag_active)
+ if (!force && drag_active)
return;
drag_active = true;
@@ -1054,7 +1054,7 @@ function rcube_treelist_widget(node, p)
autoexpand_item = id;
autoexpand_timer = setTimeout(function() {
expand(autoexpand_item);
- drag_start(); // re-calculate item coords
+ drag_start(true); // re-calculate item coords
autoexpand_item = null;
if (ui_droppable)
$.ui.ddmanager.prepareOffsets($.ui.ddmanager.current, null);