Sha256: 74776711f7e1425cc6a89605c2612bba079737bc5d79d8d7ccbe715bc46ce6f5

Contents?: true

Size: 551 Bytes

Versions: 12

Compression:

Stored size: 551 Bytes

Contents

class CalendarEventsController extends Spine.Module
  constructor: (element) ->
    for el in element.find('.event_detail')
      event = CalendarEvent.create(
        element: $(el).hide()
        held_on: $(el).data('event-date')
        active: false
      )
      @initializeEventSelect(event)

  initializeEventSelect: (event) ->
    event.bind('change', () ->
      if event.active == true
        event.element.show()
      if event.active == false
        event.element.hide()
    )

window.CalendarEventsController = CalendarEventsController

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
event_cal-2.0.2 vendor/assets/javascripts/controllers/calendarEventsController.js.coffee
event_cal-2.0.1 vendor/assets/javascripts/controllers/calendarEventsController.js.coffee
event_cal-2.0.0 vendor/assets/javascripts/controllers/calendarEventsController.js.coffee
event_cal-1.3.0 vendor/assets/javascripts/controllers/calendarEventsController.js.coffee
event_cal-1.2.5 vendor/assets/javascripts/controllers/calendarEventsController.js.coffee
event_cal-1.2.4 vendor/assets/javascripts/controllers/calendarEventsController.js.coffee
event_cal-1.2.3 vendor/assets/javascripts/controllers/calendarEventsController.js.coffee
event_cal-1.2.2 vendor/assets/javascripts/controllers/calendarEventsController.js.coffee
event_cal-1.2.1 vendor/assets/javascripts/controllers/calendarEventsController.js.coffee
event_cal-1.2 vendor/assets/javascripts/controllers/calendarEventsController.js.coffee
event_cal-1.1 vendor/assets/javascripts/controllers/calendarEventsController.js.coffee
event_cal-1.0 vendor/assets/javascripts/controllers/calendarEventsController.js.coffee