From 49a27c929d646973ce1f4ed4c93506a10be61b81 Mon Sep 17 00:00:00 2001 From: Brandon Mathis Date: Thu, 4 Apr 2013 10:22:48 -0500 Subject: fixed mobile navigation --- .themes/classic/source/javascripts/octopress.js | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) (limited to '.themes/classic/source/javascripts') diff --git a/.themes/classic/source/javascripts/octopress.js b/.themes/classic/source/javascripts/octopress.js index c3f59156..235b5d10 100644 --- a/.themes/classic/source/javascripts/octopress.js +++ b/.themes/classic/source/javascripts/octopress.js @@ -1,17 +1,15 @@ function getNav() { - var mobileNav = $('nav[role=navigation] fieldset[role=search]').after('
').next().append(''); - mobileNav.children('select').append(''); - $('ul[role=main-navigation]').addClass('main-navigation'); - $('ul.main-navigation a').each(function(i, link) { - mobileNav.children('select').append(''); - }); - $('ul.subscription a').each(function(i, link) { - mobileNav.children('select').append(''); - }); - mobileNav.children('select').bind('change', function(event) { + var mainNav = $('ul.main-navigation, ul[role=main-navigation]').before('
') + var mobileNav = $('fieldset.mobile-nav').append('