unknown 8 lat temu
rodzic
commit
ca1d527228
1 zmienionych plików z 3 dodań i 4 usunięć
  1. 3 4
      js/global.js

+ 3 - 4
js/global.js

@@ -18,20 +18,19 @@ $(document).ready(function(){
     $(this).parent().next().addClass("menu-list");
     });
   $(".leftWrapper").hover(function(){  
-    setTimeout(function(){
+    timer = setTimeout(function(){
     $(".leftWrapper").stop().animate({width:"200px"},500);
     $(".mainWrapper").stop().animate({marginLeft:"215px",marginRight:"-200px"},500);
     $(".subMenuText").fadeIn(500);
     $(".logoInfo").show(500);
-     },500);
+     },300);
   },function(){
-    setTimeout(function(){
+    clearTimeout(timer);
     $(".leftWrapper").stop().animate({width:"56px"},500);
     $(".mainWrapper").stop().animate({marginLeft:"71px",marginRight:"15px",paddingRight:"0"},500);
     $(".subMenuText").fadeOut("fast");
     $(".logoInfo").hide();
     $(".subMenuContent").slideUp();
-     },300);
   });
   $(".logo").hover(function(){
     $(".logoList").show();