diff options
Diffstat (limited to 'app/assets/javascripts/records.coffee')
| -rw-r--r-- | app/assets/javascripts/records.coffee | 6 |
1 files changed, 6 insertions, 0 deletions
| diff --git a/app/assets/javascripts/records.coffee b/app/assets/javascripts/records.coffee index 24f83d1..69cd471 100644 --- a/app/assets/javascripts/records.coffee +++ b/app/assets/javascripts/records.coffee | |||
| @@ -1,3 +1,9 @@ | |||
| 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 | $(document).on "turbolinks:load", -> | ||
| 5 | $(".should-create-record-field input[type=checkbox]").change -> | ||
| 6 | if $(".should-create-record-field input[type=checkbox]").prop("checked") | ||
| 7 | $(".record-description-field").show() | ||
| 8 | else | ||
| 9 | $(".record-description-field").hide() | ||
