Update phpci.js
Set this menu is active automatic.
This commit is contained in:
parent
77eb8d4458
commit
92d87b1f79
|
@ -24,6 +24,12 @@ var PHPCI = {
|
||||||
}
|
}
|
||||||
|
|
||||||
PHPCI.uiUpdated();
|
PHPCI.uiUpdated();
|
||||||
|
|
||||||
|
// Set menu is active
|
||||||
|
$('a[href="'+document.URL+'"]').parent().addClass('active');
|
||||||
|
$('a[href="'+document.URL+'"]').parent().parent().addClass('menu-open');
|
||||||
|
$('a[href="'+document.URL+'"]').parent().parent().parent().addClass('active');
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$(window).on('builds-updated', function (e, data) {
|
$(window).on('builds-updated', function (e, data) {
|
||||||
|
@ -472,4 +478,4 @@ var Lang = {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
moment.locale(PHPCI_LANGUAGE);
|
moment.locale(PHPCI_LANGUAGE);
|
||||||
|
|
Loading…
Reference in a new issue