From 923773943782d6ad487edb8999b3f6384ce264ec Mon Sep 17 00:00:00 2001 From: Zaid Abdulla Date: Mon, 7 Aug 2017 02:02:00 -0700 Subject: [PATCH] Fix duplicate graphs in Turbolinks previews --- app/views/devices/show.html.erb | 5 ++--- app/views/home/index.html.erb | 4 ++++ app/views/provisions/_form.html.erb | 8 +++++++- app/views/virtual_parameters/_form.html.erb | 8 +++++++- 4 files changed, 20 insertions(+), 5 deletions(-) diff --git a/app/views/devices/show.html.erb b/app/views/devices/show.html.erb index 39e0b0e..a37abf6 100644 --- a/app/views/devices/show.html.erb +++ b/app/views/devices/show.html.erb @@ -3,16 +3,15 @@ can_edit_parameters = can?(:update, 'devices/parameters') content_for :title do 'Device ' + @device['_id'] end %> diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb index 740ebba..85641b9 100644 --- a/app/views/home/index.html.erb +++ b/app/views/home/index.html.erb @@ -16,6 +16,10 @@ content_for :title do 'Home' end <% end %> diff --git a/app/views/virtual_parameters/_form.html.erb b/app/views/virtual_parameters/_form.html.erb index 2251f50..b4c3890 100644 --- a/app/views/virtual_parameters/_form.html.erb +++ b/app/views/virtual_parameters/_form.html.erb @@ -17,5 +17,11 @@ <% end %>