Skip to content
Extraits de code Groupes Projets
Valider 683625d9 rédigé par pebosi's avatar pebosi
Parcourir les fichiers

Merge branch 'master' of https://github.com/piwik/piwik

parents f5606ef1 55727244
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -144,13 +144,9 @@ var Piwik_Overlay_Client = (function() {
notifyPiwikOfLocation();
loadCss();
var finishLoadingOverlay = loading('Loading Piwik Page Overlay scripts');
// translations
load('plugins/Overlay/client/translations.js', function() {
Piwik_Overlay_Translations.initialize(function() {
finishLoadingOverlay();
// following pages
var finishPages = loading('Loading following pages');
load('plugins/Overlay/client/followingpages.js', function() {
......
......@@ -52,7 +52,9 @@ var Piwik_Overlay = (function() {
$location.html($responseLocation.html()).show();
$responseLocation.remove();
$location.find('span').hover(function () {
var $locationSpan = $location.find('span');
$locationSpan.html(piwikHelper.addBreakpointsToUrl($locationSpan.text()));
$locationSpan.hover(function () {
if (iframeDomain) {
// use addBreakpointsToUrl because it also encoded html entities
Piwik_Tooltip.show('<b>' + Piwik_Overlay_Translations.domain + ':</b> ' +
......
......@@ -55,8 +55,9 @@ var piwikHelper = {
*/
addBreakpoints: function(text, breakpointMarkup)
{
return text.replace(/([\/&=?\.%#:])/g, '$1' +
(typeof breakpointMarkup == 'undefined' ? '<wbr>' : breakpointMarkup));
return text.replace(/([\/&=?\.%#:_-])/g, '$1' +
(typeof breakpointMarkup == 'undefined' ? '<wbr>&#8203;' : breakpointMarkup));
// &#8203; is for internet explorer
},
/**
......@@ -72,7 +73,7 @@ var piwikHelper = {
}
url = piwikHelper.addBreakpoints(url, '|||');
url = $(document.createElement('p')).text(url).html();
url = url.replace(/\|\|\|/g, '<wbr />');
url = url.replace(/\|\|\|/g, '<wbr />&#8203;'); // &#8203; is for internet explorer
return url;
},
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter