diff options
author | sgiehl <stefan@piwik.org> | 2013-08-14 22:35:44 +0400 |
---|---|---|
committer | sgiehl <stefan@piwik.org> | 2013-08-15 00:57:24 +0400 |
commit | 6e61f2725126e276862ec6153e80e5f6db5cb4e1 (patch) | |
tree | 98087b064adf11ad1781345de9f72beb1c761ddb /plugins/UserCountryMap/javascripts/visitor-map.js | |
parent | 512a8f82444d6293ee0544354da888553f01f29d (diff) |
replaced presentational html tags
Diffstat (limited to 'plugins/UserCountryMap/javascripts/visitor-map.js')
-rw-r--r-- | plugins/UserCountryMap/javascripts/visitor-map.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/UserCountryMap/javascripts/visitor-map.js b/plugins/UserCountryMap/javascripts/visitor-map.js index 5231865583..963a0f3ebc 100644 --- a/plugins/UserCountryMap/javascripts/visitor-map.js +++ b/plugins/UserCountryMap/javascripts/visitor-map.js @@ -114,7 +114,7 @@ function formatValueForTooltips(data, metric, id) { var val = data[metric] % 1 === 0 || Number(data[metric]) != data[metric] ? data[metric] : data[metric].toFixed(1), - v = _[metric].replace('%s', '<b>' + val + '</b>'); + v = _[metric].replace('%s', '<strong>' + val + '</strong>'); if (val == 1 && metric == 'nb_visits') v = _.one_visit; @@ -404,7 +404,7 @@ $('.map-stats').html(formatValueForTooltips(UserCountryMap.countriesByIso[id], metric, 'world')); } else { $('.map-stats').html( - _.nb_visits.replace('%s', '<b>' + formatNumber(totalVisits) + '</b>') + (id != 'world' ? ' (' + + _.nb_visits.replace('%s', '<strong>' + formatNumber(totalVisits) + '</strong>') + (id != 'world' ? ' (' + formatPercentage(totalVisits / worldTotalVisits) + ')' : '') ); } @@ -709,7 +709,7 @@ var metric = $$('.userCountryMapSelectMetrics').val(), region = regionDict[regionCode(data)]; if (region === undefined) { - return '<h3>' + data.name + '</h3><p>' + _.nb_visits.replace('%s', '<b>0</b>') + '</p>'; + return '<h3>' + data.name + '</h3><p>' + _.nb_visits.replace('%s', '<strong>0</strong>') + '</p>'; } return '<h3>' + data.name + '</h3>' + formatValueForTooltips(region, metric, iso); |