aboutsummaryrefslogtreecommitdiff
path: root/.themes
diff options
context:
space:
mode:
authorBrandon Mathis <brandon@imathis.com>2013-03-10 13:58:49 -0700
committerBrandon Mathis <brandon@imathis.com>2013-03-10 13:58:49 -0700
commit1c7919902d38a15835a1657a19ec9cf9bbb151be (patch)
tree3e40d1dd2a5b704be0d280d5783d3382bf86c00f /.themes
parentc35ff7b6604bba61b80fb6371d7cda9920c09a81 (diff)
parentdee2900ba2b896ac20dac31ef79f833c139814f8 (diff)
downloadmy_new_personal_website-1c7919902d38a15835a1657a19ec9cf9bbb151be.tar.xz
my_new_personal_website-1c7919902d38a15835a1657a19ec9cf9bbb151be.zip
Merge pull request #1116 from peterboni/patch-1
Mobile nav fixed.
Diffstat (limited to '')
-rw-r--r--.themes/classic/source/javascripts/octopress.js4
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&hellip;</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+'">&raquo; '+link.text+'</option>');
});
- $('ul.subscription a').each(function(link) {
+ $('ul.subscription a').each(function(i, link) {
mobileNav.children('select').append('<option value="'+link.href+'">&raquo; '+link.text+'</option>');
});
mobileNav.children('select').bind('change', function(event) {