From 48ccbe1e15ebf48522e99be448a1d860db407ba9 Mon Sep 17 00:00:00 2001
From: Greg Stout <gstout@anaqua.com>
Date: Tue, 10 Feb 2015 12:17:08 -0500
Subject: [PATCH] fixed hide show bug

---
 sites/all/modules/contrib/tb_megamenu/js/tb-megamenu-frontend.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sites/all/modules/contrib/tb_megamenu/js/tb-megamenu-frontend.js b/sites/all/modules/contrib/tb_megamenu/js/tb-megamenu-frontend.js
index cd3a763..9114c2e 100644
--- a/sites/all/modules/contrib/tb_megamenu/js/tb-megamenu-frontend.js
+++ b/sites/all/modules/contrib/tb_megamenu/js/tb-megamenu-frontend.js
@@ -18,14 +18,14 @@ Drupal.TBMegaMenu = Drupal.TBMegaMenu || {};
   Drupal.TBMegaMenu.oldWindowWidth = 0;
   Drupal.behaviors.tbMegaMenuAction = {
     attach: function(context) {
-      $('.tb-megamenu-button', context).once('menuIstance', function () {
+      $('.tb-megamenu-button', context).once('menuInstance', function () {
         var This = this;
         $(This).click(function() {
           if(parseInt($(this).parent().children('.nav-collapse').height())) {
             $(this).parent().children('.nav-collapse').css({height: 0, overflow: 'hidden'});
           }
           else {
-            $(this).parent().children('.nav-collapse').css({height: 'auto', overflow: 'visible'});
+            $(this).parent().children('.nav-collapse').css({height: 'auto', overflow: 'visible'}).removeClass('collapse');
           }
         });
       });
-- 
1.9.5.msysgit.0

