From d393a54e0c48bd28b18045f7cf18f940fd318bd8 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Wed, 17 Feb 2010 19:06:32 +0100 Subject: [PATCH] Fix error when clicking on draggable events. --- kronolith/js/kronolith.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kronolith/js/kronolith.js b/kronolith/js/kronolith.js index 62f902bb8..4111b6362 100644 --- a/kronolith/js/kronolith.js +++ b/kronolith/js/kronolith.js @@ -3194,7 +3194,9 @@ KronolithCore = { attributes; div.removeClassName('kronolithSelected'); - this._setEventText(drag.innerDiv, event.value); + if (!Object.isUndefined(drag.innerDiv)) { + this._setEventText(drag.innerDiv, event.value); + } drag.destroy(); this.startLoading(event.value.calendar, start + end); if (!Object.isUndefined(event.value.offsetTop)) { -- 2.11.0