Skip to content

Commit

Permalink
Make scheduler drag&drop events between resources
Browse files Browse the repository at this point in the history
  • Loading branch information
Jelte Lagendijk committed Nov 1, 2017
1 parent 4d11e3f commit 81eb1ea
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/calendar/widget/calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,11 +216,6 @@ define([
this._getResources(this.resourceEntity, lang.hitch(this, this._prepareResources));
}

if (this.resourceEntity) {
logger.debug(this.id + "._fetchObjects resources");
this._getResources(this.resourceEntity, lang.hitch(this, this._prepareResources));
}

if (this.dataSourceType === "xpath") {
logger.debug(this.id + "._fetchObjects xpath");
constraint = this.eventConstraint;
Expand Down Expand Up @@ -442,6 +437,9 @@ define([
logger.debug(this.id + "._onEventChange", event);
var obj = event.mxobject;
this._setVariables(obj, event, this.startAttr, this.endAttr, event.allDay);
if (this.resourceEntity && this.resourceEventPath) {
this._setResourceReference(obj, this.neweventref, event.resourceId, this._mxObj);
}
this._execMF(obj, this.onchangemf);
},

Expand Down
Binary file modified test/[Test] Calendar Widget.mpr
Binary file not shown.
Binary file modified test/widgets/calendar.mpk
Binary file not shown.

0 comments on commit 81eb1ea

Please sign in to comment.