diff options
| author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-07-02 13:03:43 -0400 |
|---|---|---|
| committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-07-02 13:03:43 -0400 |
| commit | e47e83cf6bded3d1924b4d500193e7876833ef83 (patch) | |
| tree | 058f011637e67455dcd8451fbfa784b5883c6f69 /app/assets/javascripts/records.coffee | |
| parent | 528ccde8915cd1ed7a39e137dd4d98869797956a (diff) | |
| download | thoughts-e47e83cf6bded3d1924b4d500193e7876833ef83.tar.gz thoughts-e47e83cf6bded3d1924b4d500193e7876833ef83.tar.bz2 thoughts-e47e83cf6bded3d1924b4d500193e7876833ef83.zip | |
Created admin panel
Currently allows you to create and edit blogs, including associated records. Uses a WYSIWYG editor that allows uploading images. Also included jQuery :(
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() | ||
