From 0c96b2da8d7eb16915ffdb212784e20501e828e2 Mon Sep 17 00:00:00 2001 From: kikito Date: Wed, 16 Dec 2015 18:44:10 +0100 Subject: [PATCH] Removes all remaining traces of setting the user_id in the browser. --- app/assets/javascripts/annotable.js.coffee | 1 - app/views/legislations/show.html.erb | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/app/assets/javascripts/annotable.js.coffee b/app/assets/javascripts/annotable.js.coffee index f57a54b96..cde86b5a7 100644 --- a/app/assets/javascripts/annotable.js.coffee +++ b/app/assets/javascripts/annotable.js.coffee @@ -4,7 +4,6 @@ App.Annotable = $this = $(this) ann_type = $this.data("annotable-type") ann_id = $this.data("annotable-id") - ann_user_id = $this.data("annotable-user-id") app = new annotator.App() .include(annotator.ui.main, { element: this }) diff --git a/app/views/legislations/show.html.erb b/app/views/legislations/show.html.erb index 7638deb52..b36915bdd 100644 --- a/app/views/legislations/show.html.erb +++ b/app/views/legislations/show.html.erb @@ -1,6 +1,5 @@
+ data-annotable-id="<%= @legislation.id %>">
<%= @legislation.title %>
<%= @legislation.body %>