File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
.themes/classic/source/javascripts Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,10 @@ function getNav() {
2
2
var mobileNav = $ ( 'nav[role=navigation] fieldset[role=search]' ) . after ( '<fieldset class="mobile-nav"></fieldset>' ) . next ( ) . append ( '<select></select>' ) ;
3
3
mobileNav . children ( 'select' ) . append ( '<option value="">Navigate…</option>' ) ;
4
4
$ ( 'ul[role=main-navigation]' ) . addClass ( 'main-navigation' ) ;
5
- $ ( 'ul.main-navigation a' ) . each ( function ( link ) {
5
+ $ ( 'ul.main-navigation a' ) . each ( function ( i , link ) {
6
6
mobileNav . children ( 'select' ) . append ( '<option value="' + link . href + '">» ' + link . text + '</option>' ) ;
7
7
} ) ;
8
- $ ( 'ul.subscription a' ) . each ( function ( link ) {
8
+ $ ( 'ul.subscription a' ) . each ( function ( i , link ) {
9
9
mobileNav . children ( 'select' ) . append ( '<option value="' + link . href + '">» ' + link . text + '</option>' ) ;
10
10
} ) ;
11
11
mobileNav . children ( 'select' ) . bind ( 'change' , function ( event ) {
You can’t perform that action at this time.
0 commit comments