Merge pull request #5786 from consuldemocracy/stats_turbolinks_reload
Include stat graphs JavaScript in all admin stats actions
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
<% include_stat_graphs_javascript %>
|
||||
|
||||
<%= back_link_to budgets_admin_stats_path %>
|
||||
|
||||
<h2><%= budget.name %> - <%= t("admin.stats.budget_balloting.title") %></h2>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
class Admin::Stats::BudgetBallotingComponent < ApplicationComponent
|
||||
attr_reader :budget
|
||||
use_helpers :include_stat_graphs_javascript
|
||||
|
||||
def initialize(budget)
|
||||
@budget = budget
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
<% content_for :head do %>
|
||||
<%= javascript_include_tag "stat_graphs", "data-turbolinks-track" => "reload" %>
|
||||
<% end %>
|
||||
<% include_stat_graphs_javascript %>
|
||||
|
||||
<%= back_link_to budgets_admin_stats_path %>
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
class Admin::Stats::BudgetSupportingComponent < ApplicationComponent
|
||||
attr_reader :budget
|
||||
use_helpers :include_stat_graphs_javascript
|
||||
|
||||
def initialize(budget)
|
||||
@budget = budget
|
||||
|
||||
Reference in New Issue
Block a user