I am using the Multiple-Dates-Picker-for-jQuery-UI. When multiple dates are selected, the calendar opens and closes between each selection. How can I correct this so that the calendar stays open until all dates are selected and then only closes when it is clicked elsewhere in the browser.
Here is my code:
<div class="row">
<div class="span4">
<h3>On <a href="#" class="popover-tip" rel="popover"
data-content="Pick a date for your night out."
data-original-title="Date">
<i class="icon-question-sign"></i></a></h3>
<input type="text" class="datepicker">
// Date picker - allows for multi select
$('.datepicker').multiDatesPicker({
altField: '#altfield',
dateFormat: "DD, d MM, yy",
onBeforeShow: function () {
$('#inputDate').DatePickerSetDate($('#inputDate').val(), true);
},
onChange: function (formated, dates) {
$('#inputDate').val(formated);
if ($('#closeOnSelect input').attr('checked')) {
$('#inputDate').DatePickerHide();
}
}
});