diff --git a/trunk/src/AppBundle/Resources/public/js/custom.js b/trunk/src/AppBundle/Resources/public/js/custom.js index 33b16b7b..7aad7535 100644 --- a/trunk/src/AppBundle/Resources/public/js/custom.js +++ b/trunk/src/AppBundle/Resources/public/js/custom.js @@ -290,23 +290,17 @@ jQuery(document).ready(function($) { } ); } - /* $(".header .navbar-nav .dropdown:not(.openClick)").click( - function(event) { - if($(window).width() > 768){ - event.preventDefault(); - console.log($(this)); - if($(this).hasClass('.nav-first-a"')){ - //window.location.href = $(this).attr('href'); - } - if(false){ - //window.location.href = $(this).find('a').attr('href'); - } - + $(".header .dropdown:not(.openClick)").click( + function() { + if($(window).width() > 768){ + setTimeout( + function() + { + window.location.href = $(this).find('a').attr('href'); + }, 500); } - } - ); - */ + ); $('.selectpicker').selectpicker({