diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2018-11-05 03:22:51 +0300 |
---|---|---|
committer | diosmosis <diosmosis@users.noreply.github.com> | 2018-11-05 03:22:51 +0300 |
commit | ece58165deb14196662a16175f56b27688fcf985 (patch) | |
tree | d2d95e8d95f97855c250cd7fa3a3c872272e114b /plugins/CoreHome/angularjs/common | |
parent | ab68610d8909995af3f4df5d15135f2761c62894 (diff) |
Page title in Tag Manager, Help page, Admin pages show the date but there is no calendar in the page (#13440)
fix https://github.com/matomo-org/matomo/issues/13353
Diffstat (limited to 'plugins/CoreHome/angularjs/common')
-rw-r--r-- | plugins/CoreHome/angularjs/common/services/piwik.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/CoreHome/angularjs/common/services/piwik.js b/plugins/CoreHome/angularjs/common/services/piwik.js index 8fbf94c96a..29596d39a2 100644 --- a/plugins/CoreHome/angularjs/common/services/piwik.js +++ b/plugins/CoreHome/angularjs/common/services/piwik.js @@ -62,6 +62,10 @@ } function updateDateInTitle( date, period ) { + if (!$('.top_controls #periodString').length) { + return; + } + // Cache server-rendered page title originalTitle = originalTitle || document.title; var titleParts = originalTitle.split('-'); |