diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2015-10-15 18:05:27 +0300 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2015-10-15 18:05:27 +0300 |
commit | 22526a9f45d8950d668f7730f55782fa154e4c9b (patch) | |
tree | 147e04d3b1df7db8b06dd159b46aeacfaa482937 /plugins/UserCountryMap | |
parent | 9a7c13bb1a1019c004ef70a89fe5feeeda716d58 (diff) |
fixes #9007 Click on menu expands the sub-menu, but do not load first sub-menu page
Diffstat (limited to 'plugins/UserCountryMap')
-rw-r--r-- | plugins/UserCountryMap/javascripts/realtime-map.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/UserCountryMap/javascripts/realtime-map.js b/plugins/UserCountryMap/javascripts/realtime-map.js index f73259c5e7..22b7fe7ea2 100644 --- a/plugins/UserCountryMap/javascripts/realtime-map.js +++ b/plugins/UserCountryMap/javascripts/realtime-map.js @@ -61,7 +61,7 @@ initTopControls(); $('#secondNavBar').on('piwikSwitchPage', function (event, item) { var href = $(item).attr('href'); - var clickedMenuIsNotMap = (href.indexOf('module=UserCountryMap&action=realtimeWorldMap') == -1); + var clickedMenuIsNotMap = !href || (href.indexOf('module=UserCountryMap&action=realtimeWorldMap') == -1); if (clickedMenuIsNotMap) { $('#periodString').show(); initTopControls(); |