diff --git a/app/assets/javascripts/annotable.js.coffee b/app/assets/javascripts/annotatable.js.coffee similarity index 76% rename from app/assets/javascripts/annotable.js.coffee rename to app/assets/javascripts/annotatable.js.coffee index 82c9418bf..ddd82e6cf 100644 --- a/app/assets/javascripts/annotable.js.coffee +++ b/app/assets/javascripts/annotatable.js.coffee @@ -1,9 +1,9 @@ -App.Annotable = +App.Annotatable = initialize: -> - $("[data-annotable-type]").each -> + $("[data-annotatable-type]").each -> $this = $(this) - ann_type = $this.data("annotable-type") - ann_id = $this.data("annotable-id") + ann_type = $this.data("annotatable-type") + ann_id = $this.data("annotatable-id") app = new annotator.App() .include(annotator.ui.main, { element: this }) diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index 20ba1c2bf..441d1f584 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -33,7 +33,7 @@ //= require tags //= require users //= require votes -//= require annotable +//= require annotatable var initialize_modules = function() { @@ -46,7 +46,7 @@ var initialize_modules = function() { App.CheckAllNone.initialize(); App.PreventDoubleSubmission.initialize(); App.IeAlert.initialize(); - App.Annotable.initialize(); + App.Annotatable.initialize(); }; $(function(){ diff --git a/app/views/legislations/show.html.erb b/app/views/legislations/show.html.erb index b36915bdd..6c4c75be0 100644 --- a/app/views/legislations/show.html.erb +++ b/app/views/legislations/show.html.erb @@ -1,5 +1,5 @@ -
+
<%= @legislation.title %>
<%= @legislation.body %>