diff options
Diffstat (limited to 'plugins/CoreHome/javascripts/menu.js')
-rw-r--r-- | plugins/CoreHome/javascripts/menu.js | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/plugins/CoreHome/javascripts/menu.js b/plugins/CoreHome/javascripts/menu.js index 128a22188c..b229a0fab5 100644 --- a/plugins/CoreHome/javascripts/menu.js +++ b/plugins/CoreHome/javascripts/menu.js @@ -38,12 +38,9 @@ menu.prototype = }, 2000); }, - onItemClick: function (e) { - if (e.which !== 1) { - return; - } - $('.Menu--dashboard').trigger('piwikSwitchPage', this); - broadcast.propagateAjax( $(this).attr('href').substr(1) ); + onItemClick: function (item) { + $('.Menu--dashboard').trigger('piwikSwitchPage', item); + broadcast.propagateAjax( $(item).attr('href').substr(1) ); return false; }, @@ -84,8 +81,6 @@ menu.prototype = } }); - this.menuNode.find('a.item').click(this.onItemClick); - menu.prototype.adaptSubMenuHeight(); }, |