diff --git a/jquery/databap.js b/jquery/databap.js index c4251c3..a8423c9 100644 --- a/jquery/databap.js +++ b/jquery/databap.js @@ -205,16 +205,17 @@ function Databap() //Expand menu self.$menu - .stop() - .animate - ( - {width:'300px'/*, borderWidth:'10px'*/}, - 'fast', - function() - { - self.$menu.find('#menu_box').show('fast'); - } - ); + .stop() + .animate + ( + {width:'300px'/*, borderWidth:'10px'*/}, + 'fast', + function() + { + self.$menu.find('#menu_box').show(); + $(this).addClass('opened'); + } + ); } }; @@ -242,16 +243,17 @@ function Databap() //Reduce menu self.$menu.find('#menu_box').hide(); self.$menu - .stop() - .animate - ( - {width:'20px'/*, borderWidth:'0'*/}, - 'fast', - function() - { - self.$menu.find('#menu_title').show('fast'); - } - ); + .stop() + .animate + ( + {width:'20px'/*, borderWidth:'0'*/}, + 'fast', + function() + { + self.$menu.find('#menu_title').show(); + $(this).removeClass('opened'); + } + ); openedMenu = false; closeMenu = false; } diff --git a/masks/index.html b/masks/index.html index 40d0681..fc08e95 100755 --- a/masks/index.html +++ b/masks/index.html @@ -40,22 +40,22 @@