Skip to content

Commit

Permalink
fix for issue #18,disable click on map regions with 0 hits
Browse files Browse the repository at this point in the history
  • Loading branch information
Rashid Khan committed Mar 21, 2013
1 parent 13097a5 commit 79dbffc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion panels/map/module.js
Original file line number Diff line number Diff line change
@@ -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)
}
});
})

0 comments on commit 79dbffc

Please sign in to comment.