diff options
author | Stefan Giehl <stefan@matomo.org> | 2019-07-05 16:50:11 +0300 |
---|---|---|
committer | Thomas Steur <tsteur@users.noreply.github.com> | 2019-07-05 16:50:11 +0300 |
commit | 1d0cc7295b61f318030caee8e8268253807b3268 (patch) | |
tree | d12967c10956f80b5635c8f4c9af2dcf1de1ae70 /plugins/UserCountryMap/javascripts | |
parent | aed8c10c30a7eeafba02477f3877cf0c787b0191 (diff) |
Hide date selector when viewing live visits (not as widget) (#14560)
* Hide date selector when viewing live visits (not as widget)
* simplify & improve code
Diffstat (limited to 'plugins/UserCountryMap/javascripts')
-rw-r--r-- | plugins/UserCountryMap/javascripts/realtime-map.js | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/plugins/UserCountryMap/javascripts/realtime-map.js b/plugins/UserCountryMap/javascripts/realtime-map.js index 6bd2dfe0f6..39d97a7497 100644 --- a/plugins/UserCountryMap/javascripts/realtime-map.js +++ b/plugins/UserCountryMap/javascripts/realtime-map.js @@ -57,18 +57,9 @@ }, _initStandaloneMap: function () { - $('#periodString').hide(); - initTopControls(); - var $rootScope = piwikHelper.getAngularDependency('$rootScope'); - $rootScope.$on('piwikPageChange', function () { - var href = location.href; - var clickedMenuIsNotMap = !href || (href.indexOf('module=UserCountryMap&action=realtimeWorldMap') == -1); - if (clickedMenuIsNotMap) { - $('#periodString').show(); - initTopControls(); - } - }); + $rootScope.$emit('hidePeriodSelector'); + $('.realTimeMap_overlay').css('top', '0px'); $('.realTimeMap_datetime').css('top', '20px'); }, |