I have a twitter bootstrap drop-down menu with AJAX links(i.e links with data-remote="true"). When I click on a link, the menu remains open until the AJAX call is complete. Is there a way to collapse the menu as soon as a user clicks on a link?
Here is a jsFiddle sample <http://jsfiddle.net/rGV2j/> to demonstrate the problem. (Please overlook the fact that I am freezing the thread in the sample code. I wanted to simulated scenario with few lines of code.) *Note:* I am using Twitter bootstrap v 2.2.2.
