Template:NavBar

From 2014.igem.org

(Difference between revisions)
m
m
Line 141: Line 141:
if (!!('ontouchstart' in window)){
if (!!('ontouchstart' in window)){
$('.dropToggle').click(function(e) {
$('.dropToggle').click(function(e) {
-
$('.navDropMenu').stop().slideDown();
+
$('.navDropMenu', this).stop(true,true).slideDown();
$('.dropToggle').toggleClass('active');
$('.dropToggle').toggleClass('active');
e.stopPropagation();
e.stopPropagation();
Line 147: Line 147:
$(document).click(function() {
$(document).click(function() {
if ($('.navDropMenu').is(':visible')) {
if ($('.navDropMenu').is(':visible')) {
-
$('.navDropMenu', this).slideUp();
+
$('.navDropMenu', this).stop(true,true).slideUp();
$('.dropToggle').removeClass('active');
$('.dropToggle').removeClass('active');
}
}

Revision as of 15:25, 31 January 2014