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:
authorStefan Giehl <stefan@matomo.org>2021-01-26 07:22:40 +0300
committerGitHub <noreply@github.com>2021-01-26 07:22:40 +0300
commita08f08ff29e029ac67723302912cb270d2968942 (patch)
treea145a63934d0b8281be4c24b690e0f61eebd708e /plugins/UserCountryMap/javascripts
parent8f5961e1eb423e2e7815bc08e6e3c0179c7c914b (diff)
Show no visits message in realtime map only if initial request does not return visits (#17143)
Diffstat (limited to 'plugins/UserCountryMap/javascripts')
-rw-r--r--plugins/UserCountryMap/javascripts/realtime-map.js13
1 files changed, 9 insertions, 4 deletions
diff --git a/plugins/UserCountryMap/javascripts/realtime-map.js b/plugins/UserCountryMap/javascripts/realtime-map.js
index f3e6c0f648..fbb9df1196 100644
--- a/plugins/UserCountryMap/javascripts/realtime-map.js
+++ b/plugins/UserCountryMap/javascripts/realtime-map.js
@@ -405,14 +405,19 @@
return r.latitude !== null;
});
- // show warning if no visits w/ latitude
- $('#realTimeMapNoVisitsInfo').toggle(!report.length);
+ if (firstRun) {
+ // show warning if no visits w/ latitude
+ $('#realTimeMapNoVisitsInfo').toggle(!report.length);
+ }
}
// check whether we got any geolocated visits left
if (!report.length) {
- $('.realTimeMap_overlay .showing_visits_of').hide();
- $('.realTimeMap_overlay .no_data').show();
+ if (firstRun) {
+ // show no visits message only if the first request did not return any data
+ $('.realTimeMap_overlay .showing_visits_of').hide();
+ $('.realTimeMap_overlay .no_data').show();
+ }
return;
} else {
$('.realTimeMap_overlay .showing_visits_of').show();