]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Add code to remove the hover class from the siblings of the newly selected menu choic... 4691/head
authorJay D. McHugh <jaydmchugh@gmail.com>
Fri, 14 Mar 2014 22:19:01 +0000 (17:19 -0500)
committerJay D. McHugh <jaydmchugh@gmail.com>
Fri, 14 Mar 2014 22:19:01 +0000 (17:19 -0500)
js/foundation/foundation.topbar.js

index d43d31bc6788b360565568bf48b5fc8e81b03f72..ac4743af45e64b89fe725c9e6ec29b0f831b33b6 100644 (file)
           } else {
             li.addClass('hover');
 
+            $(li).siblings().removeClass('hover');
+
             if (target[0].nodeName === 'A' && target.parent().hasClass('has-dropdown')) {
               e.preventDefault();
             }
 
     reflow : function () {}
   };
-}(jQuery, this, this.document));
\ No newline at end of file
+}(jQuery, this, this.document));