Update index.html

This commit is contained in:
Scott Wallace 2014-05-15 09:35:54 +01:00
parent c1245bdd72
commit ab9c405588

View file

@ -109,9 +109,10 @@
function closeMenu() { function closeMenu() {
$(function(){ $(function(){
if ( $("#rightmenu").attr("data-open") != "false" ) { if ( $("#rightmenu").attr("data-open") != "false" ) {
$("#rightmenu").animate({left: "+=" + $("#rightmenu").css("width")}, 1000); $("#rightmenu").animate({left: "+=" + $("#rightmenu").css("width")}, 1000).done(function(){
$("#rightmenu").attr("data-open", "false");
$("#rightmenu").css("display", "none"); $("#rightmenu").css("display", "none");
$("#rightmenu").attr("data-open", "false");
});
} }
}); });
} }