From dee2900ba2b896ac20dac31ef79f833c139814f8 Mon Sep 17 00:00:00 2001 From: peterboni Date: Sun, 10 Mar 2013 13:23:52 +0800 Subject: Mobile nav fixed. Now shows links instead of 'undefined'. --- .themes/classic/source/javascripts/octopress.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.themes/classic/source/javascripts/octopress.js b/.themes/classic/source/javascripts/octopress.js index ebadb8e9..d4b38b24 100644 --- a/.themes/classic/source/javascripts/octopress.js +++ b/.themes/classic/source/javascripts/octopress.js @@ -2,10 +2,10 @@ 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(link) { + $('ul.main-navigation a').each(function(i, link) { mobileNav.children('select').append(''); }); - $('ul.subscription a').each(function(link) { + $('ul.subscription a').each(function(i, link) { mobileNav.children('select').append(''); }); mobileNav.children('select').bind('change', function(event) { -- cgit v1.2.1