mirror of
https://github.com/grafana/grafana.git
synced 2025-01-01 11:47:05 -06:00
fix for issue #18,disable click on map regions with 0 hits
This commit is contained in:
parent
13097a5a22
commit
79dbffc875
@ -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)
|
||||
}
|
||||
});
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user