Don't remove original event if saving as new.
authorJan Schneider <jan@horde.org>
Mon, 19 Apr 2010 12:49:44 +0000 (14:49 +0200)
committerJan Schneider <jan@horde.org>
Tue, 20 Apr 2010 08:33:39 +0000 (10:33 +0200)
kronolith/js/kronolith.js

index a7934f9..1586e90 100644 (file)
@@ -4368,7 +4368,7 @@ KronolithCore = {
                               as_new: asnew ? 1 : 0
                           }),
                       function(r) {
-                          if (r.response.events && eventid) {
+                          if (!asnew && r.response.events && eventid) {
                               this.removeEvent(eventid, cal);
                           }
                           this.loadEventsCallback(r);