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:
Diffstat (limited to 'plugins/CoreVisualizations/javascripts/jqplotEvolutionGraph.js')
-rw-r--r--plugins/CoreVisualizations/javascripts/jqplotEvolutionGraph.js35
1 files changed, 5 insertions, 30 deletions
diff --git a/plugins/CoreVisualizations/javascripts/jqplotEvolutionGraph.js b/plugins/CoreVisualizations/javascripts/jqplotEvolutionGraph.js
index 3b62e9197e..b77add4962 100644
--- a/plugins/CoreVisualizations/javascripts/jqplotEvolutionGraph.js
+++ b/plugins/CoreVisualizations/javascripts/jqplotEvolutionGraph.js
@@ -90,36 +90,7 @@
&& typeof self.jqplotParams.axes.xaxis.onclick[lastTick] == 'string') {
var url = self.jqplotParams.axes.xaxis.onclick[lastTick];
- if (url && -1 === url.indexOf('#')) {
- var module = broadcast.getValueFromHash('module');
- var action = broadcast.getValueFromHash('action');
- var idGoal = broadcast.getValueFromHash('idGoal');
- 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 (idGoal) {
- url += '&idGoal=' + idGoal;
- }
-
- if (period) {
- url += '&period=' + period;
- }
-
- if (period) {
- url += '&date=' + date;
- }
- }
- }
-
- piwikHelper.redirectToUrl(url);
+ broadcast.propagateNewPage(url);
}
})
.on('jqplotPiwikTickOver', function (e, tick) {
@@ -161,6 +132,10 @@
render: function () {
JqplotGraphDataTablePrototype.render.call(this);
+
+ if (initializeSparklines) {
+ initializeSparklines();
+ }
}
});