|
Is there a method to call to close an mb.menu? I have onclick methods that run ajax to load new data into the tab below the menu and it often leaves the menu pane I just clicked open until I click somewhere on the screen? This seems like an implementation error on my part as it only happens sometimes but I can't seem to figure it out besides it seems to happen when onclick method makes a jquery call. Is there a function I could call to redundantly force the menu to close? Alex |
|
Hi Alex, Did you get any javascript error in console once this happens? By default the menu should close on click event (line 421 of the latest gitHub version); if it doesen't it means there have been something that stops the close action. To answare your question, yes, there's a method that closes all the opened menu at once:
But I suggest you to find out what's going on into your code. Bye, Matteo |
|
Hey Matteo, Thanks for the response and for building awesome jquery tools. Currently this problem doesn't throw an error in the chrome console but now that I know what lines aren't getting run I will try to debug it further, I agree that would be the best solution. Thanks also for the pointer to the removeMbMenu function. Cheersm Alex |


