From e1f58ac8c9a7a4657b5110a9cb680a6021d8127c Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Mon, 20 Jun 2016 10:38:03 -0400 Subject: [PATCH] made small change due to forgetting to make a hotfix for the previous commit --- js/app.js | 4 +++- js/custom/pageSetup.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/js/app.js b/js/app.js index f01b2a5..5295c40 100644 --- a/js/app.js +++ b/js/app.js @@ -59,8 +59,10 @@ $(document).ready(function () { $('#submit-button > td').attr("colspan",2); + // get the url of whichever page we're on var url = window.location.href; - // 'current' class style to sidebar item that matches the current url + + // 'current_page_item' class style to sidebar item that matches the current url $('ul.sidebar li a').each(function() { if ($(this).prop('href') == url) { $(this).addClass('current_page_item'); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 5d7bb64..5bb623e 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -50,8 +50,10 @@ $(document).ready(function () { $('#submit-button > td').attr("colspan",2); + // get the url of whichever page we're on var url = window.location.href; - // 'current' class style to sidebar item that matches the current url + + // 'current_page_item' class style to sidebar item that matches the current url $('ul.sidebar li a').each(function() { if ($(this).prop('href') == url) { $(this).addClass('current_page_item'); -- 2.17.1