diff --git a/index.html b/index.html index 8c2e860..1df436f 100644 --- a/index.html +++ b/index.html @@ -109,11 +109,10 @@ function closeMenu() { $(function(){ if ( $("#rightmenu").attr("data-open") != "false" ) { - $("#rightmenu").animate({left: "+=" + $("#rightmenu").css("width")}, 1000).success(function(){ + $("#rightmenu").animate({left: "+=" + $("#rightmenu").css("width")}, 1000, function(){ $("#rightmenu").css("display", "none"); - $("#rightmenu").attr("data-open", "false"); - alert("Hello"); }); + $("#rightmenu").attr("data-open", "false"); } }); }