]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
[FIX] for mobile_show_parent_link 5515/head
authorste101 <stephan_bauer@gmx.de>
Tue, 29 Jul 2014 14:45:47 +0000 (16:45 +0200)
committerste101 <stephan_bauer@gmx.de>
Tue, 29 Jul 2014 14:45:47 +0000 (16:45 +0200)
js/foundation/foundation.topbar.js

index e5eae5ad940b2fc84d6fc012e3b6ce85a13d3fd2..ebd5bf73096e185686ee53ef897887cd4f6d7694 100755 (executable)
         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>');
           }