Update index.html

This commit is contained in:
Scott Wallace 2014-05-15 09:45:45 +01:00
parent e41dccc331
commit d5bdfeb3ab

View file

@ -109,11 +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).success(function(){ $("#rightmenu").animate({left: "+=" + $("#rightmenu").css("width")}, 1000, function(){
$("#rightmenu").css("display", "none"); $("#rightmenu").css("display", "none");
$("#rightmenu").attr("data-open", "false");
alert("Hello");
}); });
$("#rightmenu").attr("data-open", "false");
} }
}); });
} }