Merge pull request #1116 from peterboni/patch-1

Mobile nav fixed.
This commit is contained in:
Brandon Mathis 2013-03-10 13:58:49 -07:00
commit 1c7919902d
1 changed files with 2 additions and 2 deletions

View File

@ -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) {