     working_group = $('#task_working_group_id :selected').text()
     escaped_wg = working_group.replace(/([ #;&,.+*~\':"!^$[\]()=>|\/@])/g, '\\$1')
     options = $(organizers).filter("optgroup[label='#{escaped_wg}']").html()
-    console.log options
     if options
       $('#task_organizer_id').html(options)
       $('#task_organizer_id').parent().show()

# FIXME adapt to new UI
# class Time
#   constructor: (@selector)->
#     @str = @selector.val()
#     parts = @str.split(":")
#     @hour   = parseInt(parts[0])
#     @minute = parseInt(parts[1])

#   lessThan: (other) ->
#     if @hour < other.hour
#       true

#     else if @hour == other.hour
#       @minute <= other.minute

#     else
#       false

#   update: (other) ->
#     @selector.val(other.str)

ready = ->


      dayOfWeekStart: I18n.t('datepicker.day_of_week_start'),
      format:         I18n.t('datepicker.date_format'),
      minDate:        0,
      scrollMonth:    false,
      onChangeDateTime: validateDateTime
    });

    $('.xd_timepicker').datetimepicker({
      datepicker:     false,
      step:           15,
      format:         I18n.t('datepicker.time_format'),
      defaultTime:    '12:00',
      onChangeDateTime: validateDateTime
    });

  showOrHideStartDate = ->
    type = $('#task_scheduling_type').val()
    if type == "between" 
      $('.at-element').hide()
