|
@@ -27,9 +27,13 @@ $(document).ready(function(){
|
|
|
elt.children('ul.dropdown-menu').stop(true);
|
|
elt.children('ul.dropdown-menu').stop(true);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- $('.dropdown').on('mouseenter', function(e) {
|
|
|
|
|
|
|
+ $('.dropdown').on('mouseenter tap', function(e) {
|
|
|
|
|
|
|
|
- e.preventDefault();
|
|
|
|
|
|
|
+ // Special: the dropdown is already displayed, this can
|
|
|
|
|
+ // happen on mobile or tablet
|
|
|
|
|
+ if ($(this).hasClass('dropdown-displayed')) {
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
// stop any delayed hiding on this since the cursor went back on it
|
|
// stop any delayed hiding on this since the cursor went back on it
|
|
|
stopDelayedHidingFor($(this));
|
|
stopDelayedHidingFor($(this));
|
|
@@ -92,8 +96,13 @@ $(document).ready(function(){
|
|
|
var dropdown = $(this).closest('.dropdown');
|
|
var dropdown = $(this).closest('.dropdown');
|
|
|
var dropdown_menu = dropdown.find('.dropdown-menu').first();
|
|
var dropdown_menu = dropdown.find('.dropdown-menu').first();
|
|
|
dropdown_menu.toggleClass('show-flex');
|
|
dropdown_menu.toggleClass('show-flex');
|
|
|
|
|
+
|
|
|
|
|
+ $(this).toggleClass('fa-plus');
|
|
|
|
|
+ $(this).toggleClass('fa-minus');
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
// **** Login Pop-Up and Auth
|
|
// **** Login Pop-Up and Auth
|
|
|
$('#login-btn').on('click', function(e) {
|
|
$('#login-btn').on('click', function(e) {
|
|
|
e.preventDefault();
|
|
e.preventDefault();
|