Skip to content

Commit 81eb1ea

Browse files
author
Jelte Lagendijk
committed
Make scheduler drag&drop events between resources
1 parent 4d11e3f commit 81eb1ea

3 files changed

Lines changed: 3 additions & 5 deletions

File tree

src/calendar/widget/calendar.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -216,11 +216,6 @@ define([
216216
this._getResources(this.resourceEntity, lang.hitch(this, this._prepareResources));
217217
}
218218

219-
if (this.resourceEntity) {
220-
logger.debug(this.id + "._fetchObjects resources");
221-
this._getResources(this.resourceEntity, lang.hitch(this, this._prepareResources));
222-
}
223-
224219
if (this.dataSourceType === "xpath") {
225220
logger.debug(this.id + "._fetchObjects xpath");
226221
constraint = this.eventConstraint;
@@ -442,6 +437,9 @@ define([
442437
logger.debug(this.id + "._onEventChange", event);
443438
var obj = event.mxobject;
444439
this._setVariables(obj, event, this.startAttr, this.endAttr, event.allDay);
440+
if (this.resourceEntity && this.resourceEventPath) {
441+
this._setResourceReference(obj, this.neweventref, event.resourceId, this._mxObj);
442+
}
445443
this._execMF(obj, this.onchangemf);
446444
},
447445

test/[Test] Calendar Widget.mpr

0 Bytes
Binary file not shown.

test/widgets/calendar.mpk

50 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)