From c4591d4426c33b0d90f36f359a30f48da58ebb08 Mon Sep 17 00:00:00 2001 From: Aysam Guerler Date: Fri, 20 Jun 2014 03:37:10 -0400 Subject: [PATCH] Charts: Fix last change --- .../charts/static/charts/others/heatmap/heatmap-plugin.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/plugins/visualizations/charts/static/charts/others/heatmap/heatmap-plugin.js b/config/plugins/visualizations/charts/static/charts/others/heatmap/heatmap-plugin.js index 42e7dc31beb..3fc24b9c635 100644 --- a/config/plugins/visualizations/charts/static/charts/others/heatmap/heatmap-plugin.js +++ b/config/plugins/visualizations/charts/static/charts/others/heatmap/heatmap-plugin.js @@ -207,11 +207,11 @@ return Backbone.View.extend({ // add tooltip events boxes.selectAll('rect') .on('dblclick', function(d) { - d3.event.stopPropagation(); - var xLabel = self.categories.array.x[d.x]; - var yLabel = self.categories.array.y[d.y]; var url = self.chart.settings.get('url_template').trim(); if (url) { + d3.event.stopPropagation(); + var xLabel = self.categories.array.x[d.x]; + var yLabel = self.categories.array.y[d.y]; window.open(url.replace('__LABEL__', xLabel)); window.open(url.replace('__LABEL__', yLabel)); }