Partial fix for bug #3204461 - Datepicker not showing up on 'continue insertion'.

This commit is contained in:
Rouslan Placella
2011-03-30 20:47:32 +01:00
committed by Michal Čihař
parent 38ca2f2d8a
commit c33ba84655

View File

@@ -400,6 +400,13 @@ $(document).ready(function() {
$changed_element.closest('tr').find('span.column_type').html()
);
});
if ($this_element.is('.datefield') || $this_element.is('.datetimefield')) {
// we now need to remove the remainings of the datepicker
// from the element that we cloned
$this_element.removeClass('hasDatepicker').next().remove();
// and bind a new datepicker
PMA_addDatepicker($this_element);
}
}
if ($this_element.is('.checkbox_null')) {