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");
+ });
}
});
}