Welcome to mirror list, hosted at ThFree Co, Russian Federation.

menu_init.js « javascripts « CoreHome « plugins - github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 490c8591853c17528e058e1651328f0cc4303a1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$(function () {
    var isPageHasMenu = $('.Menu--dashboard').size();
    var isPageIsAdmin = $('#content.admin').size();
    if (isPageHasMenu) {
        piwikMenu = new menu();
        piwikMenu.init();
        piwikMenu.loadFirstSection();
    }

    if(isPageIsAdmin) {
        // don't use broadcast in admin pages
        return;
    }
    if(isPageHasMenu) {
        broadcast.init();
    } else {
        broadcast.init(true);
    }
});