about summary refs log tree commit diff stats
path: root/app/assets/javascripts/records.coffee
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2017-07-02 22:34:39 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2017-07-02 22:34:39 -0400
commit21240f6664c65abf75439f92cea3cc1dcabc8d54 (patch)
tree2acbab64ba0be93598fd65afa54d1a36805bf581 /app/assets/javascripts/records.coffee
parent48577e0ffaeaf67b8cce4984521ece4fdd2ba047 (diff)
downloadthoughts-21240f6664c65abf75439f92cea3cc1dcabc8d54.tar.gz
thoughts-21240f6664c65abf75439f92cea3cc1dcabc8d54.tar.bz2
thoughts-21240f6664c65abf75439f92cea3cc1dcabc8d54.zip
Fixed the "create record" checkbox in admin
Some weird stuff about javascript and precompiliation. Will get around
to cleaning up some of the javascript soon.
Diffstat (limited to 'app/assets/javascripts/records.coffee')
-rw-r--r--app/assets/javascripts/records.coffee9
1 files changed, 0 insertions, 9 deletions
diff --git a/app/assets/javascripts/records.coffee b/app/assets/javascripts/records.coffee deleted file mode 100644 index 69cd471..0000000 --- a/app/assets/javascripts/records.coffee +++ /dev/null
@@ -1,9 +0,0 @@
1# Place all the behaviors and hooks related to the matching controller here.
2# All this logic will automatically be available in application.js.
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()