Fix error when clicking on draggable events.
authorJan Schneider <jan@horde.org>
Wed, 17 Feb 2010 18:06:32 +0000 (19:06 +0100)
committerJan Schneider <jan@horde.org>
Wed, 17 Feb 2010 18:06:48 +0000 (19:06 +0100)
kronolith/js/kronolith.js

index 62f902b..4111b63 100644 (file)
@@ -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)) {