]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Allows top level items to remain clickable when breakpoint not reached 962/head
authorSam Georges <sam@daftspunk.com>
Sat, 29 Sep 2012 09:39:34 +0000 (19:39 +1000)
committerSam Georges <sam@daftspunk.com>
Sat, 29 Sep 2012 09:39:34 +0000 (19:39 +1000)
vendor/assets/javascripts/foundation/jquery.foundation.topbar.js

index 0723aee1cbe466e3cb308be2d6b7d4d05fadba35..00dbf7fa849cf12f7bd79c02b18e6ab0f99fee4c 100644 (file)
@@ -47,9 +47,8 @@
 
           // Show the Dropdown Levels on Click
           $('.top-bar .has-dropdown>a').live('click.fndtn', function (e) {
-            e.preventDefault();
-
             if (methods.breakpoint()) {
+              e.preventDefault();
               var $this = $(this),
                   $selectedLi = $this.closest('li'),
                   $nextLevelUl = $selectedLi.children('ul'),