From d5bdfeb3abde8829fbb9f8bbbac21cfa0689d69d Mon Sep 17 00:00:00 2001 From: Scott Wallace <scott@wallace.sh> Date: Thu, 15 May 2014 09:45:45 +0100 Subject: [PATCH] Update index.html --- index.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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"); } }); }