Permalink
Browse files

Adding another small option

  • Loading branch information...
1 parent fd32401 commit b77aa83573f21351cd2b155df2fa6a3ad5a8f71f @nhocki committed Jul 23, 2010
Showing with 7 additions and 1 deletion.
  1. +7 −1 slidingmenu.js
View
@@ -5,6 +5,7 @@
{
animationSpeed : 'fast',
slideUpInner : true,
+ slideDownInner : false,
triggerElement : "h1.menu-title",
holderElement : ".menu-items"
},
@@ -16,7 +17,12 @@
}else{
$(settings.holderElement+":visible", $(this).parent()).first().slideUp(settings.animationSpeed);
}
- $(settings.holderElement+":hidden", $(this).parent()).first().slideDown(settings.animationSpeed);
+
+ if(settings.slideDownInner == false){
+ $(settings.holderElement+":hidden", $(this).parent()).first().slideDown(settings.animationSpeed);
+ }else{
+ $(settings.holderElement+":hidden", $(this).parent()).slideDown(settings.animationSpeed);
+ }
});
};
})(jQuery);

0 comments on commit b77aa83

Please sign in to comment.