From 3a4d4f93757465461976c74da3909cf19a99de44 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 10 Nov 2014 13:52:21 +0100 Subject: [PATCH] Improved show/hide behaviour. --- .../javascripts/app/controllers/widget/ticket_stats.js.coffee | 4 ---- app/assets/javascripts/app/views/widget/ticket_stats.jst.eco | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/app/assets/javascripts/app/controllers/widget/ticket_stats.js.coffee b/app/assets/javascripts/app/controllers/widget/ticket_stats.js.coffee index 8ff1600be..aece7cfe3 100644 --- a/app/assets/javascripts/app/controllers/widget/ticket_stats.js.coffee +++ b/app/assets/javascripts/app/controllers/widget/ticket_stats.js.coffee @@ -59,9 +59,6 @@ class App.TicketStats extends App.Controller org_total: data.org_tickets_open_ids.length + data.org_tickets_closed_ids.length ) - if @organization - @showOrgTab() - limit = 5 new TicketStatsList( el: @$('.js-user-open-tickets') @@ -158,6 +155,5 @@ class TicketStatsFrequency extends App.Controller item.closed_in_percent = 100 / max * item.closed @html App.view('widget/ticket_stats_frequency')( - user: @user ticket_volume_by_year: @ticket_volume_by_year.reverse() ) diff --git a/app/assets/javascripts/app/views/widget/ticket_stats.jst.eco b/app/assets/javascripts/app/views/widget/ticket_stats.jst.eco index 8eb80ec61..8cb8fcd25 100644 --- a/app/assets/javascripts/app/views/widget/ticket_stats.jst.eco +++ b/app/assets/javascripts/app/views/widget/ticket_stats.jst.eco @@ -5,7 +5,7 @@ <% end %> -
+
@@ -14,7 +14,7 @@
-
+