Skip to content

Commit

Permalink
refs piwik/plugin-CustomDimensions#15 detect idDimension from url ins…
Browse files Browse the repository at this point in the history
…tead of hash if it is widgetized
  • Loading branch information
tsteur committed Dec 2, 2015
1 parent 3360d24 commit 016a8ad
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion plugins/CoreHome/javascripts/dataTable_rowactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,13 @@ DataTable_RowActions_RowEvolution.prototype.showRowEvolution = function (apiMeth
requestParams.action = 'getRowEvolutionPopover';
requestParams.colors = JSON.stringify(piwik.getSparklineColors());

var idDimension = broadcast.getValueFromHash('idDimension');
var idDimension;
if (broadcast.getValueFromUrl('module') === 'Widgetize') {
idDimension = broadcast.getValueFromUrl('idDimension');
} else {
idDimension = broadcast.getValueFromHash('idDimension');
}

if (idDimension) {
requestParams.idDimension = parseInt(idDimension, 10);
}
Expand Down

0 comments on commit 016a8ad

Please sign in to comment.