diff --git a/index.html b/index.html
index 2d90eb3..3a1c815 100644
--- a/index.html
+++ b/index.html
@@ -124,10 +124,10 @@
function closeMenu() {
$(function(){
if ( $("#rightmenu").attr("data-open") != "false" ) {
+ $("#rightmenu").attr("data-open", "false");
$("#rightmenu").animate({left: "+=" + $("#rightmenu").css("width")}, 1000, function(){
$("#rightmenu").css("display", "none");
});
- $("#rightmenu").attr("data-open", "false");
}
});
}