From 21240f6664c65abf75439f92cea3cc1dcabc8d54 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 2 Jul 2017 22:34:39 -0400 Subject: 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. --- app/assets/javascripts/records.coffee | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 app/assets/javascripts/records.coffee (limited to 'app/assets/javascripts/records.coffee') 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 @@ -# 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://coffeescript.org/ -$(document).on "turbolinks:load", -> - $(".should-create-record-field input[type=checkbox]").change -> - if $(".should-create-record-field input[type=checkbox]").prop("checked") - $(".record-description-field").show() - else - $(".record-description-field").hide() -- cgit 1.4.1