Skip to content

Commit

Permalink
Fixed handling of top-level of secondary navigation 2 in mobile view.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Jackson authored and Paul Jackson committed Oct 25, 2012
1 parent aee604a commit a774b8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/js/pe-ap-min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/js/pe-ap.js
Expand Up @@ -898,8 +898,8 @@
subsection.append(pe.menu.buildmobile($this.parent(), hlevel + 1, theme1, false, expand, theme2, false));
}
// If the original menu item was not in a menu bar
if (!menubar && !expand) {
subsection.find('div[data-role="collapsible-set"]').eq(0).append($this.children('a').html(hlink[0].innerHTML + ' - ' + mainText).attr({'data-role': 'button', 'data-theme': theme2, 'data-icon': 'arrow-r', 'data-iconpos': 'right', 'data-corners': 'false'}));
if (!menubar && toplevel) {
subsection.append($this.children('a').html(hlink[0].innerHTML + ' - ' + mainText).attr({'data-role': 'button', 'data-theme': theme2, 'data-icon': 'arrow-r', 'data-iconpos': 'right', 'data-corners': 'false'}));
}
}
menu.append(subsection);
Expand Down

0 comments on commit a774b8d

Please sign in to comment.