From 42d9db526d3aef2e08848d6bc587feaf3700db42 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sat, 7 Jul 2018 16:23:04 -0400 Subject: Added tags Blogs and streams can now be tagged. Records now show the appropriate tags for an entry. Updates work oddly, because their records show the stream's tags, since updates do not have tags themselves. refs #2 --- app/assets/javascripts/admin/records.coffee | 2 ++ app/assets/javascripts/application.js | 1 + 2 files changed, 3 insertions(+) (limited to 'app/assets/javascripts') diff --git a/app/assets/javascripts/admin/records.coffee b/app/assets/javascripts/admin/records.coffee index 3a1ed51..7a11ce1 100644 --- a/app/assets/javascripts/admin/records.coffee +++ b/app/assets/javascripts/admin/records.coffee @@ -23,3 +23,5 @@ $(document).on "turbolinks:load", -> create_record_toggle($(this).prop("checked")) $(".published-field input[type=checkbox]").change -> published_field_toggle($(this).prop("checked")) + $("input[type=tags]").each -> + tagsInput(this) diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index f902906..a81b3b2 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -14,4 +14,5 @@ //= require jquery_ujs //= require turbolinks //= require ckeditor/init +//= require tags-input //= require_tree ./admin -- cgit 1.4.1