From 1b1d05959a7920ede12849750129ae8cb7a29291 Mon Sep 17 00:00:00 2001 From: rkh Date: Thu, 4 Feb 2010 17:36:16 +0000 Subject: [PATCH] fix spent on granularity issue git-svn-id: https://dev.finn.de/svn/cockpit/trunk@499 7926756e-e54e-46e6-9721-ed318f58905e --- app/views/cost_reports/_group_by.rhtml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/cost_reports/_group_by.rhtml b/app/views/cost_reports/_group_by.rhtml index 7c940e53d8..c77bc5c7d0 100644 --- a/app/views/cost_reports/_group_by.rhtml +++ b/app/views/cost_reports/_group_by.rhtml @@ -2,8 +2,8 @@ //.include($("group_by[name]").value) ? 'inline' : 'none'}); + $('group_by_granularity').setStyle({ + 'display': <%= @query.time_groups.inject([]){|r,t| r<.include($("group_by_name").value) ? 'inline' : 'none'}); } //]]>