Skip to content

Commit

Permalink
Merge pull request home-assistant#1116 from peterboni/patch-1
Browse files Browse the repository at this point in the history
Mobile nav fixed.
  • Loading branch information
imathis committed Mar 10, 2013
2 parents c35ff7b + dee2900 commit 1c79199
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .themes/classic/source/javascripts/octopress.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1c79199

Please sign in to comment.