Tuesday, 13 August 2013

jQuery monthYearPicker Done button doesn't work in ie

jQuery monthYearPicker Done button doesn't work in ie

I'm using a monthYearPicker which is a descendant of datepicker.
Everything works fine in Chrome, when I click on the Done button or when I
click anywhere in the browser, the monthYearPicker closes.
When used in ie 10, the monthYearPicker closes when I click anywhere in
the browser but does not close until I click a many time on the Done
button (its not repetitive)...
What I would want to do is to force the monthYearPicker to close when the
button is clicked. I've created an onClose event (which is working
properly) that I would want to use to force it to close
$('.monthYearPicker').monthYearPicker({
onClose: function(date, inst){
// Reset input color state
reset_cg_state($(this).parents("form"));
// Verify logical place of dates
verifyDates($(this), date);
// Force Datepicker to hide
$(this)._hideDatepicker(); <= that does not work...
},
});
Could anybody tell me how I can force the datepicker to close?
Thanks.

No comments:

Post a Comment