From: Anthony Talarico Date: Mon, 20 Jun 2016 14:38:03 +0000 (-0400) Subject: made small change due to forgetting to make a hotfix for the previous commit X-Git-Tag: v1.0.5^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=e1f58ac8c9a7a4657b5110a9cb680a6021d8127c;p=WP-Themes%2Fgaslightmedia.git made small change due to forgetting to make a hotfix for the previous commit --- 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');