set created/modified adding an event, fixes #989
This commit is contained in:
parent
926410d663
commit
7d4d543ee3
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue