ReadyResponder/ReadyResponder

View on GitHub
app/assets/javascripts/app.js.coffee

Summary

Maintainability
Test Coverage
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
jQuery ->
        #See application_helper.rb: format_date_value
        $('.datepicker').datetimepicker({
          timepicker: false,
          format:'Y-m-d',
          scrollMonth: false,
          scrollInput: false,
        });
        #See application_helper.rb: format_datetime_value
        $('.datetimepicker').datetimepicker({
          format:'Y-m-d H:i',
          step: 15,
          scrollMonth: false,
          scrollInput: false,
          });
        $('.accordion').accordion
          collapsible: true
          active: false