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:
authordiosmosis <diosmosis@users.noreply.github.com>2018-07-31 15:09:10 +0300
committerMatthieu Aubry <mattab@users.noreply.github.com>2018-07-31 15:09:10 +0300
commit0521d33d6f9df2727b77facee7f28c9c13327216 (patch)
tree6e4a236ca6a5013ed2260c66bf886347fed5bf7a /plugins/UserCountryMap/javascripts
parentcc5d65e4e691967bf1f9ab79b29ea75d34daa396 (diff)
Display warning if there are no visits in realtime map because of missing latitude/longitude. (#13220)
* Display warning if there are no visits in realtime map because of missing latitude/longitude. * use pre-existing view variable.
Diffstat (limited to 'plugins/UserCountryMap/javascripts')
-rw-r--r--plugins/UserCountryMap/javascripts/realtime-map.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/UserCountryMap/javascripts/realtime-map.js b/plugins/UserCountryMap/javascripts/realtime-map.js
index 09396e9bba..5e616acd47 100644
--- a/plugins/UserCountryMap/javascripts/realtime-map.js
+++ b/plugins/UserCountryMap/javascripts/realtime-map.js
@@ -409,6 +409,9 @@
report = $.grep(report, function (r) {
return r.latitude !== null;
});
+
+ // show warning if no visits w/ latitude
+ $('#realTimeMapNoVisitsInfo').toggle(!report.length);
}
// check wether we got any geolocated visits left