Update phpci.js

Set this menu is active automatic.
This commit is contained in:
Hiago Silva Souza 2016-08-31 10:48:42 -03:00 committed by GitHub
parent 77eb8d4458
commit 92d87b1f79

View file

@ -24,6 +24,12 @@ var PHPCI = {
}
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) {
@ -472,4 +478,4 @@ var Lang = {
}
};
moment.locale(PHPCI_LANGUAGE);
moment.locale(PHPCI_LANGUAGE);