From c33ba8465564f350a2e1e6e269fb7ea577de9418 Mon Sep 17 00:00:00 2001 From: Rouslan Placella Date: Wed, 30 Mar 2011 20:47:32 +0100 Subject: [PATCH] Partial fix for bug #3204461 - Datepicker not showing up on 'continue insertion'. --- js/tbl_change.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/js/tbl_change.js b/js/tbl_change.js index 69dfdf557..200e66532 100644 --- a/js/tbl_change.js +++ b/js/tbl_change.js @@ -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')) {