diff options
author | peterboni <peter.boni@gmail.com> | 2013-03-10 13:23:52 +0800 |
---|---|---|
committer | peterboni <peter.boni@gmail.com> | 2013-03-10 13:23:52 +0800 |
commit | dee2900ba2b896ac20dac31ef79f833c139814f8 (patch) | |
tree | e644afd3c82ab0b14af726291b2816921dd597e0 /.themes/classic/source/javascripts | |
parent | 98013543d9bb0c51e05236498bf4fbc92af678e1 (diff) | |
download | my_new_personal_website-dee2900ba2b896ac20dac31ef79f833c139814f8.tar.xz my_new_personal_website-dee2900ba2b896ac20dac31ef79f833c139814f8.zip |
Mobile nav fixed.
Now shows links instead of 'undefined'.
Diffstat (limited to '.themes/classic/source/javascripts')
-rw-r--r-- | .themes/classic/source/javascripts/octopress.js | 4 |
1 files 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('<fieldset class="mobile-nav"></fieldset>').next().append('<select></select>'); mobileNav.children('select').append('<option value="">Navigate…</option>'); $('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('<option value="'+link.href+'">» '+link.text+'</option>'); }); - $('ul.subscription a').each(function(link) { + $('ul.subscription a').each(function(i, link) { mobileNav.children('select').append('<option value="'+link.href+'">» '+link.text+'</option>'); }); mobileNav.children('select').bind('change', function(event) { |