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:
authorgka <gka@vis4.net>2010-08-16 22:06:53 +0400
committergka <gka@vis4.net>2010-08-16 22:06:53 +0400
commitd4bec164f518081cd9904ef7d57d267a33436165 (patch)
tree1189255486f35280971b716089416570a1fc06b1 /plugins
parent03b3558a3760904de3d78ae2901963ee6d6370c7 (diff)
added bug-fix from peterB (fixes #1561)
git-svn-id: http://dev.piwik.org/svn/trunk@2950 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'plugins')
-rw-r--r--plugins/UserCountryMap/templates/worldmap.tpl6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/UserCountryMap/templates/worldmap.tpl b/plugins/UserCountryMap/templates/worldmap.tpl
index 7a5c6edb03..f5e2a973bb 100644
--- a/plugins/UserCountryMap/templates/worldmap.tpl
+++ b/plugins/UserCountryMap/templates/worldmap.tpl
@@ -18,8 +18,8 @@ $(document).ready(function() {
{/literal}
{* this hacks helps jquery to distingish between safari and chrome. *}
- $.browser.chrome = /chrome/.test(navigator.userAgent.toLowerCase());
- if ($.browser.chrome) $.browser.safari = false;
+ var isSafari = (navigator.userAgent.toLowerCase().indexOf("safari") != -1 &&
+ navigator.userAgent.toLowerCase().indexOf("chrome") == -1 ? true : false);
fv.dataUrl = encodeURIComponent("{$dataUrl}");
fv.hueMin = {$hueMin};
@@ -29,7 +29,7 @@ $(document).ready(function() {
fv.lgtMin = {$lgtMin};
fv.lgtMax = {$lgtMax};
{* we need to add 22 pixel for safari due to wrong width calculation for the select *}
- fv.iconOffset = $('#userCountryMapSelectMetrics').width() + 22 + ($.browser.safari ? 22 : 0);
+ fv.iconOffset = $('#userCountryMapSelectMetrics').width() + 22 + (isSafari ? 22 : 0);
fv.defaultMetric = "{$defaultMetric}";
fv.txtLoading = encodeURIComponent("{'General_Loading_js'|translate}");