From 79dbffc875fe7b838fa69454f4170189c069bcb0 Mon Sep 17 00:00:00 2001 From: Rashid Khan Date: Wed, 20 Mar 2013 21:30:04 -0700 Subject: [PATCH] fix for issue #18,disable click on map regions with 0 hits --- panels/map/module.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/panels/map/module.js b/panels/map/module.js index ca1146d831eef..806302e69f444 100644 --- a/panels/map/module.js +++ b/panels/map/module.js @@ -140,7 +140,9 @@ angular.module('kibana.map', []) onRegionOut: function(event, code) { }, onRegionClick: function(event, code) { - scope.build_search(scope.panel.field,code) + var count = _.isUndefined(scope.data[code]) ? 0 : scope.data[code]; + if (count != 0) + scope.build_search(scope.panel.field,code) } }); })