set created/modified adding an event, fixes #989

This commit is contained in:
j 2012-09-18 12:21:52 +02:00
parent 926410d663
commit 7d4d543ee3

View file

@ -583,6 +583,8 @@ Ox.CalendarEditor = function(options, self) {
self.options.addEvent(encodeValues(event), function(result) { self.options.addEvent(encodeValues(event), function(result) {
if (result.status.code == '200') { if (result.status.code == '200') {
event.id = result.data.id; event.id = result.data.id;
event.created = result.data.created;
event.modified = result.data.modified;
if (self.options.hasMatches) { if (self.options.hasMatches) {
event.matches = result.data.matches; event.matches = result.data.matches;
} }