Skip to content

Commit

Permalink
[FIX] for mobile_show_parent_link
Browse files Browse the repository at this point in the history
  • Loading branch information
ste101 committed Jul 29, 2014
1 parent dc6d2ca commit ec4bae8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions js/foundation/foundation.topbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,10 +353,8 @@
if (!$dropdown.find('.title.back').length) {

if (settings.mobile_show_parent_link == true && url && url.length > 1) {
console.log('Parent On');
$titleLi = $('<li class="title back js-generated"><h5><a href="javascript:void(0)"></a></h5></li><li class="parent-link show-for-small"><h6><a class="parent-link js-generated" href="#">' + $link.html() +'</a></h6></li>');
$titleLi = $('<li class="title back js-generated"><h5><a href="javascript:void(0)"></a></h5></li><li class="parent-link show-for-small"><h6><a class="parent-link js-generated" href="' + url + '">' + $link.html() +'</a></h6></li>');
} else {
console.log('Parent off');
$titleLi = $('<li class="title back js-generated"><h5><a href="javascript:void(0)"></a></h5>');
}

Expand Down

1 comment on commit ec4bae8

@JordanWirth
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, thanks for the PR. We want to send you an awesome Yeti t-shirt. Shoot us an email with your shirt size and address to foundation at zurb.com.

Please sign in to comment.