File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
app/controllers/events/view Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
1
import Controller from '@ember/controller' ;
2
- import $ from 'jquery' ;
3
2
import { computed } from '@ember/object' ;
4
3
import moment from 'moment' ;
5
4
@@ -57,7 +56,7 @@ export default Controller.extend({
57
56
} ) ;
58
57
} ,
59
58
unscheduleSession ( session ) {
60
- $ ( '.full-calendar' ) . fullCalendar ( 'removeEvents' , session . _id ) ;
59
+ window . $ ( '.full-calendar' ) . fullCalendar ( 'removeEvents' , session . _id ) ;
61
60
this . updateSession ( null , null , session . resourceId , session . serverId ) ;
62
61
this . target . send ( 'refresh' ) ;
63
62
@@ -67,8 +66,8 @@ export default Controller.extend({
67
66
let start = date ;
68
67
let duration = this . get ( 'model.defaultDuration' ) . split ( ':' ) ;
69
68
let end = start . clone ( ) . add ( duration [ 0 ] , 'hours' ) . add ( duration [ 1 ] , 'minutes' ) ;
70
- this . updateSession ( start , end , resourceId , $ ( ui . helper ) . data ( 'serverId' ) ) ;
71
- $ ( ui . helper ) . remove ( ) ;
69
+ this . updateSession ( start , end , resourceId , window . $ ( ui . helper ) . data ( 'serverId' ) ) ;
70
+ window . $ ( ui . helper ) . remove ( ) ;
72
71
} ,
73
72
eventDrop ( session ) {
74
73
this . updateSession ( session . start , session . end , session . resourceId , session . serverId ) ;
You can’t perform that action at this time.
0 commit comments