From: Jan Schneider Date: Tue, 17 Mar 2009 17:18:48 +0000 (+0100) Subject: Use new dragdrop functionality. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=01d880c4fb70394f67f15aa9d43f12c8f15ce35d;p=horde.git Use new dragdrop functionality. --- diff --git a/kronolith/js/src/kronolith.js b/kronolith/js/src/kronolith.js index c9472f927..30a9ea8cf 100644 --- a/kronolith/js/src/kronolith.js +++ b/kronolith/js/src/kronolith.js @@ -596,7 +596,7 @@ KronolithCore = { .observe('mouseover', div.addClassName.curry('kronolithSelected')) .observe('mouseout', div.removeClassName.curry('kronolithSelected')); $('kronolithMonthDay' + date.key).insert(div); - new Drag('kronolithEventmonth' + r.response.cal + event.key, { ghosting: true, parentElement: function() { return document.body; } }); + new Drag('kronolithEventmonth' + r.response.cal + event.key, { parentElement: function() { return $('kronolithViewMonth').select('.kronolithViewBody')[0]; }, snapToParent: true }); break; } }, this);