This repository was archived by the owner on Sep 8, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -37,11 +37,11 @@ angular.module('ui.calendar', [])
37
37
} ;
38
38
39
39
this . eventsFingerprint = function ( e ) {
40
- if ( ! e . __uiCalId ) {
41
- e . __uiCalId = eventSerialId ++ ;
40
+ if ( ! e . _id ) {
41
+ e . _id = eventSerialId ++ ;
42
42
}
43
43
// This extracts all the information we need from the event. http://jsperf.com/angular-calendar-events-fingerprint/3
44
- return "" + e . __uiCalId + ( e . id || '' ) + ( e . title || '' ) + ( e . url || '' ) + ( + e . start || '' ) + ( + e . end || '' ) +
44
+ return "" + e . _id + ( e . id || '' ) + ( e . title || '' ) + ( e . url || '' ) + ( + e . start || '' ) + ( + e . end || '' ) +
45
45
( e . allDay || '' ) + ( e . className || '' ) + extraEventSignature ( e ) || '' ;
46
46
} ;
47
47
@@ -246,11 +246,13 @@ angular.module('ui.calendar', [])
246
246
247
247
eventsWatcher . onRemoved = function ( event ) {
248
248
scope . calendar . fullCalendar ( 'removeEvents' , function ( e ) {
249
- return e . __uiCalId === event . __uiCalId ;
249
+ return e . _id === event . _id ;
250
250
} ) ;
251
251
} ;
252
252
253
253
eventsWatcher . onChanged = function ( event ) {
254
+ event . _start = $ . fullCalendar . moment ( event . start ) ;
255
+ event . _end = $ . fullCalendar . moment ( event . end ) ;
254
256
scope . calendar . fullCalendar ( 'updateEvent' , event ) ;
255
257
} ;
256
258
You can’t perform that action at this time.
0 commit comments