title: Prevent Daterangepicker from closing when predefined range selected
body: <p>I'm using Dan Grossman's DateRangePicker plugin to provide users with a way to select both predefined and custom date ranges for a specific feature on my site. I have it working, but I have one nagging issue that I have not been able to resolve.</p>
  
  <p>When the user clicks on a predefined date range, the bootstrap dropdown menu closes. This causes the user to have to reopen the date picker and click the "apply" button to execute the function.</p>
  
  <p>I would like the dropdown menu to remain open after a predefined date range has been clicked. Then the user can quickly click the apply button if they are happy with the range.</p>
  
  <p>I have tried the following:</p>
  
  <pre><code>$(function() {
      $(document).on('click', '.ranges li', function(e) {
          e.preventDefault();
      });
  });
  </code></pre>
  
  <p>This effectively prevents the dropdown from closing, but it doesn't then execute the "clickRange" function in order to set the start and end dates in the appropriate inputs.</p>