Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatryk Andrzejewski <patryk@piwik.pro>2015-06-10 17:50:09 +0300
committerPatryk Andrzejewski <patryk@piwik.pro>2015-06-10 17:50:09 +0300
commitdfcfb3d8e5c56124c67790518293242191911d60 (patch)
tree2f264bd27f216d183f1097f9a47fc627c0978d85 /plugins/UserCountryMap
parent47e5b467afbd4e4a739db93c5cd26a33ae0b911b (diff)
add values.length > 0 condition
Diffstat (limited to 'plugins/UserCountryMap')
-rw-r--r--plugins/UserCountryMap/javascripts/visitor-map.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/UserCountryMap/javascripts/visitor-map.js b/plugins/UserCountryMap/javascripts/visitor-map.js
index 831cd2e539..93594c8c39 100644
--- a/plugins/UserCountryMap/javascripts/visitor-map.js
+++ b/plugins/UserCountryMap/javascripts/visitor-map.js
@@ -231,7 +231,7 @@
}
// a good place to update the legend, isn't it?
- if (choropleth) {
+ if (choropleth && values.length > 0) {
$('.UserCountryMap-legend .content').html('').show();
var itemExists = {};
$.each(chroma.limits(values, 'k', 3), function (i, v) {