diff options
Diffstat (limited to 'app/assets/javascripts/admin/dashboard.coffee')
| -rw-r--r-- | app/assets/javascripts/admin/dashboard.coffee | 7 |
1 files changed, 7 insertions, 0 deletions
| diff --git a/app/assets/javascripts/admin/dashboard.coffee b/app/assets/javascripts/admin/dashboard.coffee index 24f83d1..bc48315 100644 --- a/app/assets/javascripts/admin/dashboard.coffee +++ b/app/assets/javascripts/admin/dashboard.coffee | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | # Place all the behaviors and hooks related to the matching controller here. | 1 | # Place all the behaviors and hooks related to the matching controller here. |
| 2 | # All this logic will automatically be available in application.js. | 2 | # All this logic will automatically be available in application.js. |
| 3 | # You can use CoffeeScript in this file: http://coffeescript.org/ | 3 | # You can use CoffeeScript in this file: http://coffeescript.org/ |
| 4 | dash_ready = -> | ||
| 5 | $(".datepicker").datepicker({"dateFormat": "yy-mm-dd"}) | ||
| 6 | $("#check_all").change -> | ||
| 7 | $(".comment_ids").prop("checked", $(this).prop("checked")) | ||
| 8 | |||
| 9 | $(document).ready(dash_ready) | ||
| 10 | $(document).on('turbolinks:load', dash_ready) | ||
