From 5243c1653b238b8d873d9c6a27b780426e24aec3 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Tue, 30 Apr 2013 18:21:56 -0700 Subject: query: do not save the panel in args args is meant to be serialized for local storage factory functions now get panel as another argument --- python/gras/query/chart_handler_breakdown.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python/gras/query/chart_handler_breakdown.js') diff --git a/python/gras/query/chart_handler_breakdown.js b/python/gras/query/chart_handler_breakdown.js index 459c2d3..5f76d1d 100644 --- a/python/gras/query/chart_handler_breakdown.js +++ b/python/gras/query/chart_handler_breakdown.js @@ -1,4 +1,4 @@ -function GrasChartHandlerBreakdown(args) +function GrasChartHandlerBreakdown(args, panel) { //input checking if (args.block_ids.length != 1) throw gras_error_dialog( @@ -11,7 +11,7 @@ function GrasChartHandlerBreakdown(args) this.block_id = args.block_ids[0]; //make new chart - this.chart = new google.visualization.PieChart(args.panel); + this.chart = new google.visualization.PieChart(panel); this.title = "Handler Breakdown - " + this.block_id; this.default_width = GRAS_CHARTS_STD_WIDTH; -- cgit