title: Collapsing a Twitter bootstrap drop-down menu as soon as a menu item is clicked
body: <p>I have a twitter bootstrap drop-down menu with AJAX links(i.e links with <code>data-remote="true"</code>). 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?</p>
  
  <p>Here is a jsFiddle <a href="http://jsfiddle.net/rGV2j/" rel="nofollow">sample</a> to demonstrate the problem. (Please overlook the fact that I am freezing the thread in the sample code. I wanted to simulate scenario with few lines of code.)</p>
  
  <p><strong>Note:</strong> I am using Twitter bootstrap v 2.2.2.</p>