Files
mozo-backend/app/assets/javascripts/supplier/app/controllers/schedule_controller.js.coffee
T

15 lines
730 B
CoffeeScript

#App.ScheduleController = Ember.Controller.extend
# event_changed: (event)->
# @store.findRecord('employee-shift', event.id).then (employee_shift)->
# employee_shift.set 'start_from', event.start
# employee_shift.set 'end_on', event.end
# employee_shift.save()
# editEvent: (id, callbacks)->
# if employee_shift = @store.peekRecord('employee-shift', id)
# @modal 'employee_shift',
# title_path: 'employee_shift.modal.title'
# destroy_text_path: 'employee_shift.modal.destroy_confirmation'
# model: employee_shift
# save: -> callbacks.save.call(@, employee_shift) if callbacks.save
# destroy_callback: -> callbacks.destroy.call(@, employee_shift) if callbacks.destroy