From bdad447ca9824369fbf062d14158bbce911ac8ae Mon Sep 17 00:00:00 2001 From: adametz Date: Tue, 22 May 2018 16:33:59 +0000 Subject: [PATCH] JS nav 2 git-svn-id: http://78.47.251.156/svn/dev/sterntours-3@3397 f459cee4-fb09-11de-96c3-f9c5f16c3c76 --- trunk/src/AppBundle/Resources/public/js/custom.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trunk/src/AppBundle/Resources/public/js/custom.js b/trunk/src/AppBundle/Resources/public/js/custom.js index 7aad7535..e34b277c 100644 --- a/trunk/src/AppBundle/Resources/public/js/custom.js +++ b/trunk/src/AppBundle/Resources/public/js/custom.js @@ -293,10 +293,11 @@ jQuery(document).ready(function($) { $(".header .dropdown:not(.openClick)").click( function() { if($(window).width() > 768){ + var _self = $(this); setTimeout( function() { - window.location.href = $(this).find('a').attr('href'); + window.location.href = _self.find('a').attr('href'); }, 500); } }