Created
October 5, 2017 13:49
-
-
Save kuzyk/91cd2c4e4b00d0d76040b7b0fab1979b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery('#menu-main > li.menu-item-has-children > a').on('click', function (e) { | |
e.stopPropagation(); | |
var $this = jQuery(this); | |
if ($this.next('ul').is(":hidden") || $this.hasClass('active')) { | |
e.preventDefault(); | |
$this.toggleClass('active'); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment