Sha256: 54e832c41020a479d362bf48ff9930ee95cba2bc648d5f0da2183264a5871116

Contents?: true

Size: 927 Bytes

Versions: 89

Compression:

Stored size: 927 Bytes

Contents

<script language="javascript">
  $(document).ready(function() {
    if ($('input:checkbox#event_all_day').is(':checked')) {
      $('#event_start_at_4i').attr('disabled', true);
      $('#event_start_at_5i').attr('disabled', true);
      $('#event_end_at_4i').attr('disabled', true);
      $('#event_end_at_5i').attr('disabled', true);
    }

    $('input:checkbox#event_all_day').click(function() {
      if ($(this).is(':checked')) {
        $('#event_start_at_4i').attr('disabled', true);
        $('#event_start_at_5i').attr('disabled', true);
        $('#event_end_at_4i').attr('disabled', true);
        $('#event_end_at_5i').attr('disabled', true);
      } else {
        $('#event_start_at_4i').attr('disabled', false);
        $('#event_start_at_5i').attr('disabled', false);
        $('#event_end_at_4i').attr('disabled', false);
        $('#event_end_at_5i').attr('disabled', false);
      }
    });
  });
</script>

Version data entries

89 entries across 89 versions & 1 rubygems

Version Path
enju_event-0.0.10 app/views/events/_all_day.html.erb
enju_event-0.1.1 app/views/events/_all_day.html.erb
enju_event-0.1.0 app/views/events/_all_day.html.erb
enju_event-0.0.9 app/views/events/_all_day.html.erb
enju_event-0.0.8 app/views/events/_all_day.html.erb
enju_event-0.0.7 app/views/events/_all_day.html.erb
enju_event-0.0.5 app/views/events/_all_day.html.erb
enju_event-0.0.4 app/views/events/_all_day.html.erb
enju_event-0.0.3 app/views/events/_all_day.html.erb