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:
authorThomas Steur <thomas.steur@gmail.com>2016-02-14 23:10:26 +0300
committerThomas Steur <thomas.steur@gmail.com>2016-02-14 23:10:26 +0300
commit2bae9d90f860f3ccc5598420eb978cafd598451e (patch)
treeb742afddcfc882de15b9c075522cee4eae680db6 /plugins/Overlay/client
parent41b579a9d94a05f7c0cb2e42bf7c03c2d374ed95 (diff)
merge master => 3.0
Diffstat (limited to 'plugins/Overlay/client')
-rw-r--r--plugins/Overlay/client/followingpages.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/Overlay/client/followingpages.js b/plugins/Overlay/client/followingpages.js
index 860fbc2274..3185b87b67 100644
--- a/plugins/Overlay/client/followingpages.js
+++ b/plugins/Overlay/client/followingpages.js
@@ -164,7 +164,12 @@ var Piwik_Overlay_FollowingPages = (function () {
linkTag[0].piwikTagElement = true;
var rate = data.clickRate;
- if (rate < 10) {
+
+ if( rate < 0.001 ) {
+ rate = '<0.001';
+ } else if (rate < 1) {
+ rate = Math.round( rate * 1000 ) / 1000;
+ } else if (rate < 10) {
rate = Math.round(rate * 10) / 10;
} else {
rate = Math.round(rate);