diff --git a/app/assets/javascripts/events.js.coffee b/app/assets/javascripts/events.js.coffee index 4241886..c9dfd07 100644 --- a/app/assets/javascripts/events.js.coffee +++ b/app/assets/javascripts/events.js.coffee @@ -10,5 +10,9 @@ ready = -> day: 'HH:mm' events: '/events.json' + eventClick: + (calEvent) -> + document.location = "../events/#{calEvent.id}/edit" + $(document).ready(ready) $(document).on('page:load', ready)