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:
Diffstat (limited to 'plugins/CoreHome/templates/menu.js')
-rw-r--r--plugins/CoreHome/templates/menu.js14
1 files changed, 8 insertions, 6 deletions
diff --git a/plugins/CoreHome/templates/menu.js b/plugins/CoreHome/templates/menu.js
index 51139ed6b7..eef1dd5ba4 100644
--- a/plugins/CoreHome/templates/menu.js
+++ b/plugins/CoreHome/templates/menu.js
@@ -10,7 +10,7 @@ menu.prototype =
if(urlLoaded == menu.prototype.lastUrlRequested)
{
$('#content').html( content ).show();
- $('#loadingPiwik').hide();
+ piwikHelper.hideAjaxLoading();
menu.prototype.lastUrlRequested = null;
}
},
@@ -47,7 +47,7 @@ menu.prototype =
.superfish({
pathClass : 'current',
animation : {opacity:'show'},
- delay : 1000
+ delay : 2000
});
this.param.superfish.find("li")
.click( self.onClickLI )
@@ -130,8 +130,10 @@ menu.prototype =
};
$(document).ready( function(){
- piwikMenu = new menu();
- piwikMenu.init();
- piwikMenu.loadFirstSection();
- broadcast.init();
+ if($('.nav').size()) {
+ piwikMenu = new menu();
+ piwikMenu.init();
+ piwikMenu.loadFirstSection();
+ broadcast.init();
+ }
});