Révision a08833bd
Ajouté par Assos Assos il y a presque 8 ans
drupal7/sites/all/themes/adaptivetheme/at_core/scripts/menu-toggle.js | ||
---|---|---|
40 | 40 |
// Callback |
41 | 41 |
function cb(data){ |
42 | 42 |
// Toggle menus open or closed |
43 |
$(".at-menu-toggle-button-link", context).click(function() { |
|
44 |
$(this).parent().siblings('.menu-toggle').slideToggle(100, 'swing').toggleClass('menu-toggle-open'); |
|
45 |
return false; |
|
43 |
$(".at-menu-toggle-button-link", context).unbind("click").click(function(e) { |
|
44 |
$(this).parent().parent().find('.menu-toggle').slideToggle(100, 'swing').toggleClass('menu-toggle-open'); |
|
45 |
e.preventDefault(); |
|
46 |
e.stopPropagation(); |
|
46 | 47 |
}); |
47 |
|
|
48 |
/* |
|
49 |
// Close if clicked outside (inc another toggle menu) |
|
50 |
$(".at-menu-toggle-button-link", context).bind('clickoutside', function(event) { |
|
51 |
$(this).parent().siblings('.menu-toggle').slideUp(100, 'swing').removeClass('menu-toggle-open'); |
|
52 |
//return false; |
|
53 |
}); |
|
54 |
*/ |
|
55 | 48 |
} |
56 |
|
|
57 |
//console.log(themeSettings); |
|
58 | 49 |
} |
59 | 50 |
}; |
60 | 51 |
})(jQuery); |
Formats disponibles : Unified diff
Weekly update of contrib modules