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.1.18 app/views/events/_all_day.html.erb
enju_event-0.1.17 app/views/events/_all_day.html.erb
enju_event-0.1.17.pre27 app/views/events/_all_day.html.erb
enju_event-0.1.17.pre26 app/views/events/_all_day.html.erb
enju_event-0.1.17.pre25 app/views/events/_all_day.html.erb
enju_event-0.1.17.pre24 app/views/events/_all_day.html.erb
enju_event-0.1.17.pre23 app/views/events/_all_day.html.erb
enju_event-0.1.17.pre22 app/views/events/_all_day.html.erb
enju_event-0.1.17.pre21 app/views/events/_all_day.html.erb
enju_event-0.1.17.pre20 app/views/events/_all_day.html.erb
enju_event-0.1.17.pre19 app/views/events/_all_day.html.erb
enju_event-0.1.17.pre18 app/views/events/_all_day.html.erb
enju_event-0.1.17.pre17 app/views/events/_all_day.html.erb
enju_event-0.1.17.pre16 app/views/events/_all_day.html.erb
enju_event-0.1.17.pre15 app/views/events/_all_day.html.erb
enju_event-0.1.17.pre14 app/views/events/_all_day.html.erb
enju_event-0.1.17.pre13 app/views/events/_all_day.html.erb
enju_event-0.1.17.pre12 app/views/events/_all_day.html.erb
enju_event-0.1.17.pre11 app/views/events/_all_day.html.erb
enju_event-0.1.17.pre10 app/views/events/_all_day.html.erb