diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2016-02-14 23:10:26 +0300 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2016-02-14 23:10:26 +0300 |
commit | 2bae9d90f860f3ccc5598420eb978cafd598451e (patch) | |
tree | b742afddcfc882de15b9c075522cee4eae680db6 /plugins/Overlay/client | |
parent | 41b579a9d94a05f7c0cb2e42bf7c03c2d374ed95 (diff) |
merge master => 3.0
Diffstat (limited to 'plugins/Overlay/client')
-rw-r--r-- | plugins/Overlay/client/followingpages.js | 7 |
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); |