From a37aedc45b8ffb2000e677c030deba11e67ed882 Mon Sep 17 00:00:00 2001 From: "Collin J. Doering" Date: Sun, 16 Aug 2015 02:57:43 -0400 Subject: [PATCH] Updated href used to find blog navigation item Due to pagination, the first page of the blog is routed to "/blog1.html" and this href is used in the navigation as well. Thus to set the blog navigation menuitem to active, the href needed to be updated. Signed-off-by: Collin J. Doering --- js/default.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/default.js b/js/default.js index 5c8484e..79556ef 100644 --- a/js/default.js +++ b/js/default.js @@ -51,7 +51,7 @@ _paq.push(['enableLinkTracking']); ajaxCallbacks: { beforeSend: function () { $('#nav-menu li.active').removeClass('active'); - $('#nav-menu li a[href="/blog.html"]').parent('li').addClass('active'); + $('#nav-menu li a[href="/blog1.html"]').parent('li').addClass('active'); } } }, @@ -60,7 +60,7 @@ _paq.push(['enableLinkTracking']); ajaxCallbacks: { beforeSend: function () { $('#nav-menu li.active').removeClass('active'); - $('#nav-menu li a[href="/blog.html"]').parent('li').addClass('active'); + $('#nav-menu li a[href="/blog1.html"]').parent('li').addClass('active'); } } }, @@ -69,8 +69,8 @@ _paq.push(['enableLinkTracking']); ajaxCallbacks: { beforeSend: function () { // Set the blog menuitem as active - $('a.menuitem[href="/blog.html"]').closest('ul').find('li.active').removeClass('active'); - $('a.menuitem[href="/blog.html"]').closest('li').addClass('active'); + $('a.menuitem[href="/blog1.html"]').closest('ul').find('li.active').removeClass('active'); + $('a.menuitem[href="/blog1.html"]').closest('li').addClass('active'); } } },