From b4584bd01cce557d98c8cb738da0a87e2d8dd0c5 Mon Sep 17 00:00:00 2001 From: Brandon Mathis Date: Thu, 21 Jul 2011 15:32:10 -0400 Subject: improved navigation selection and fixed mobile nav select --- .themes/classic/source/javascripts/octopress.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.themes/classic/source/javascripts') diff --git a/.themes/classic/source/javascripts/octopress.js b/.themes/classic/source/javascripts/octopress.js index bdc47683..12ca23ea 100644 --- a/.themes/classic/source/javascripts/octopress.js +++ b/.themes/classic/source/javascripts/octopress.js @@ -1,7 +1,7 @@ function getNav(){ - var mobileNav = $('body > nav fieldset[role=site-search]').after('
').next().append(''); + var mobileNav = $('nav[role=navigation] fieldset[role=site-search]').after('
').next().append(''); mobileNav.children('select').append(''); - $($('body > nav ul[role=main-nav] a')).each(function(link) { + $($('ul[role=main-navigation] a')).each(function(link) { mobileNav.children('select').append('') }); mobileNav.children('select').bind('change', function(event){ -- cgit v1.2.1