Skip to content
Extraits de code Groupes Projets
Valider 60bffb44 rédigé par Thomas Steur's avatar Thomas Steur
Parcourir les fichiers

refs #5970 make sure to reload the same page if user clicks on a date in the...

refs #5970 make sure to reload the same page if user clicks on a date in the evolution chart, even if the metric was changed
parent 0a3d62ce
Branches
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -89,6 +89,31 @@ ...@@ -89,6 +89,31 @@
if (lastTick !== false && typeof self.jqplotParams.axes.xaxis.onclick != 'undefined' if (lastTick !== false && typeof self.jqplotParams.axes.xaxis.onclick != 'undefined'
&& typeof self.jqplotParams.axes.xaxis.onclick[lastTick] == 'string') { && typeof self.jqplotParams.axes.xaxis.onclick[lastTick] == 'string') {
var url = self.jqplotParams.axes.xaxis.onclick[lastTick]; var url = self.jqplotParams.axes.xaxis.onclick[lastTick];
if (url && -1 === url.indexOf('#')) {
var module = broadcast.getValueFromHash('module');
var action = broadcast.getValueFromHash('action');
var idSite = broadcast.getValueFromUrl('idSite', url);
var period = broadcast.getValueFromUrl('period', url);
var date = broadcast.getValueFromUrl('date', url);
if (module && action) {
url += '#module=' + module + '&action=' + action;
if (idSite) {
url += '&idSite=' + idSite;
}
if (period) {
url += '&period=' + period;
}
if (period) {
url += '&date=' + date;
}
}
}
piwikHelper.redirectToUrl(url); piwikHelper.redirectToUrl(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