aboutsummaryrefslogtreecommitdiff
path: root/.themes
diff options
context:
space:
mode:
authorBrandon Mathis <brandon@imathis.com>2011-09-25 09:14:50 -0500
committerBrandon Mathis <brandon@imathis.com>2011-09-25 09:15:04 -0500
commit9ef928588b32b055cf7f846b47ce0da36ef8af3c (patch)
tree2d545be365ac3a6b0cf89037266f71b8561a98d3 /.themes
parente7032f2f67288a98ef5787144fda73acc52602b9 (diff)
downloadmy_new_personal_website-9ef928588b32b055cf7f846b47ce0da36ef8af3c.tar.xz
my_new_personal_website-9ef928588b32b055cf7f846b47ce0da36ef8af3c.zip
mobile nav javascript updated to still work with role='main-navigation' since changes affecting custom partials don't get updated with the standard update script
Diffstat (limited to '.themes')
-rw-r--r--.themes/classic/source/javascripts/octopress.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/.themes/classic/source/javascripts/octopress.js b/.themes/classic/source/javascripts/octopress.js
index a23ab502..d6cf4d91 100644
--- a/.themes/classic/source/javascripts/octopress.js
+++ b/.themes/classic/source/javascripts/octopress.js
@@ -1,6 +1,7 @@
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) {
mobileNav.children('select').append('<option value="'+link.href+'">&bull; '+link.text+'</option>');
});