From ab9c4055880271452a2f2717afab3a59b9492ba4 Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Thu, 15 May 2014 09:35:54 +0100 Subject: [PATCH] Update index.html --- index.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 669f7c9..4ceb581 100644 --- a/index.html +++ b/index.html @@ -109,9 +109,10 @@ function closeMenu() { $(function(){ if ( $("#rightmenu").attr("data-open") != "false" ) { - $("#rightmenu").animate({left: "+=" + $("#rightmenu").css("width")}, 1000); - $("#rightmenu").attr("data-open", "false"); - $("#rightmenu").css("display", "none"); + $("#rightmenu").animate({left: "+=" + $("#rightmenu").css("width")}, 1000).done(function(){ + $("#rightmenu").css("display", "none"); + $("#rightmenu").attr("data-open", "false"); + }); } }); }