diff --git a/assets/js/plugins/jquery.greedy-navigation.js b/assets/js/plugins/jquery.greedy-navigation.js index ce8a80ca2874..a12ec3ee6394 100644 --- a/assets/js/plugins/jquery.greedy-navigation.js +++ b/assets/js/plugins/jquery.greedy-navigation.js @@ -103,7 +103,11 @@ $(function() { clearTimeout(timer); }); - $hlinks.on('mouseleave', function() { + $hlinks.on("click", function () { + // Hide the hidden links & remove the overlay when one is clicked. + $hlinks.addClass("hidden"); + $btn.removeClass("close"); + }).on('mouseleave', function() { // Mouse has left, start the timer timer = setTimeout(function() { $hlinks.addClass('hidden');