File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ once we do away with the deprecated eventResourceField.
3737EventDef . prototype . applyMiscProps = function ( rawProps ) {
3838 rawProps = $ . extend ( { } , rawProps ) // clone, because of delete
3939
40- this . resourceIds = Resource . extractIds ( rawProps , this . source . calendar )
40+ this . resourceIds = Resource . extractIds ( rawProps , this . source )
4141
4242 delete rawProps . resourceId
4343 delete rawProps . resourceIds
Original file line number Diff line number Diff line change @@ -2,4 +2,5 @@ import { EventSource } from 'fullcalendar'
22
33// defineStandardProps won't work :(
44// TODO: find a better way
5- ( EventSource . prototype as any ) . standardPropMap . resourceEditable = true // automatically transfer
5+ ( EventSource . prototype as any ) . standardPropMap . resourceEditable = true ; // automatically transfer
6+ ( EventSource . prototype as any ) . standardPropMap . resourceId = true
Original file line number Diff line number Diff line change 22export default class Resource {
33
44
5- static extractIds ( rawProps , calendar ) {
6- const resourceField = calendar . opt ( 'eventResourceField' ) || 'resourceId'
5+ static extractIds ( rawProps , source ) {
6+ const resourceField = source . calendar . opt ( 'eventResourceField' ) || 'resourceId'
77 const resourceIds = [ ]
88
99 if ( rawProps . resourceIds ) {
@@ -16,6 +16,10 @@ export default class Resource {
1616 resourceIds . push ( Resource . normalizeId ( rawProps [ resourceField ] ) )
1717 }
1818
19+ if ( source [ resourceField ] ) {
20+ resourceIds . push ( Resource . normalizeId ( source [ resourceField ] ) )
21+ }
22+
1923 return resourceIds
2024 }
2125
You can’t perform that action at this time.
0 commit comments