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:
authorThomas Steur <thomas.steur@gmail.com>2016-02-03 01:19:46 +0300
committerThomas Steur <thomas.steur@gmail.com>2016-02-03 01:19:46 +0300
commit1d315434d7992b574d1ead6381dcff805c521bcd (patch)
tree35f00bc9c3d81550096e708c53dcf8be79940cca /plugins/Overlay/javascripts/Piwik_Overlay.js
parent888ade738e5e1367406cf7865c5feb5da94ab0fd (diff)
fix JavaScript error when Transitions plugin is disabled
Diffstat (limited to 'plugins/Overlay/javascripts/Piwik_Overlay.js')
-rw-r--r--plugins/Overlay/javascripts/Piwik_Overlay.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/Overlay/javascripts/Piwik_Overlay.js b/plugins/Overlay/javascripts/Piwik_Overlay.js
index 184b7c75db..35584be177 100644
--- a/plugins/Overlay/javascripts/Piwik_Overlay.js
+++ b/plugins/Overlay/javascripts/Piwik_Overlay.js
@@ -240,13 +240,17 @@ var Piwik_Overlay = (function () {
if (segment) {
unescapedSegment = unescape(segment);
}
- DataTable_RowActions_Transitions.launchForUrl(iframeCurrentPageNormalized, unescapedSegment);
+ if (window.DataTable_RowActions_Transitions) {
+ DataTable_RowActions_Transitions.launchForUrl(iframeCurrentPageNormalized, unescapedSegment);
+ }
return false;
});
// handle row evolution link
$rowEvolutionLink.click(function () {
- DataTable_RowActions_RowEvolution.launch('Actions.getPageUrls', iframeCurrentActionLabel);
+ if (window.DataTable_RowActions_RowEvolution) {
+ DataTable_RowActions_RowEvolution.launch('Actions.getPageUrls', iframeCurrentActionLabel);
+ }
return false;
});