From 92d87b1f791744c685873cb1b21e8795ab50a76d Mon Sep 17 00:00:00 2001 From: Hiago Silva Souza Date: Wed, 31 Aug 2016 10:48:42 -0300 Subject: [PATCH] Update phpci.js Set this menu is active automatic. --- public/assets/js/phpci.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/public/assets/js/phpci.js b/public/assets/js/phpci.js index 4a55b459..ea2c7b53 100644 --- a/public/assets/js/phpci.js +++ b/public/assets/js/phpci.js @@ -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); \ No newline at end of file +moment.locale(PHPCI_LANGUAGE);