From: Jay D. McHugh Date: Fri, 14 Mar 2014 22:19:01 +0000 (-0500) Subject: Add code to remove the hover class from the siblings of the newly selected menu choic... X-Git-Tag: v5.2.2~92^2~15^2 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=refs%2Fpull%2F4691%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Add code to remove the hover class from the siblings of the newly selected menu choice. This is only an issue when is_hover: false --- diff --git a/js/foundation/foundation.topbar.js b/js/foundation/foundation.topbar.js index d43d31bc6..ac4743af4 100644 --- a/js/foundation/foundation.topbar.js +++ b/js/foundation/foundation.topbar.js @@ -188,6 +188,8 @@ } else { li.addClass('hover'); + $(li).siblings().removeClass('hover'); + if (target[0].nodeName === 'A' && target.parent().hasClass('has-dropdown')) { e.preventDefault(); } @@ -417,4 +419,4 @@ reflow : function () {} }; -}(jQuery, this, this.document)); \ No newline at end of file +}(jQuery, this, this.document));