From 47573af6c6d513447ed191f01321cac1a942697c Mon Sep 17 00:00:00 2001 From: Brandon Mathis Date: Tue, 22 May 2012 21:18:55 -0500 Subject: [PATCH] Improved mobile navigation injection script to work when search is not present. Fixes #380 --- .themes/classic/source/javascripts/octopress.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.themes/classic/source/javascripts/octopress.js b/.themes/classic/source/javascripts/octopress.js index 379e663..1c17035 100644 --- a/.themes/classic/source/javascripts/octopress.js +++ b/.themes/classic/source/javascripts/octopress.js @@ -1,5 +1,5 @@ function getNav() { - var mobileNav = $('nav[role=navigation] fieldset[role=search]').after('
').next().append(''); + var mobileNav = $('nav[role=navigation] ul.main-navigation').before('
').next().append(''); mobileNav.children('select').append(''); $('ul[role=main-navigation]').addClass('main-navigation'); $('ul.main-navigation a').each(function(link) {