[Phpmyadmin-git] [SCM] phpMyAdmin branch, master, updated. RELEASE_3_4_0BETA4-1596-gecd7ab7
Michal Čihař
nijel at users.sourceforge.net
Mon Apr 4 11:58:14 CEST 2011
The branch, master has been updated
via ecd7ab7f1c5196308eeb843f7ef7313ec5e35885 (commit)
from 523ac3b6269b909da5e4612d8f4a9cede73fc98c (commit)
- Log -----------------------------------------------------------------
commit ecd7ab7f1c5196308eeb843f7ef7313ec5e35885
Author: Rouslan Placella <rouslan at placella.com>
Date: Sat Apr 2 18:26:30 2011 +0100
Improved fix for issue#1 from bug #3204461 - "Continue insertion" and some column types
-----------------------------------------------------------------------
Summary of changes:
js/tbl_change.js | 18 +++++++++++-------
1 files changed, 11 insertions(+), 7 deletions(-)
diff --git a/js/tbl_change.js b/js/tbl_change.js
index 200e665..2812c26 100644
--- a/js/tbl_change.js
+++ b/js/tbl_change.js
@@ -336,6 +336,11 @@ $(document).ready(function() {
*/
var target_rows = $("#insert_rows").val();
+ // remove all datepickers
+ $('.datefield,.datetimefield').each(function(){
+ $(this).datepicker('destroy');
+ });
+
if(curr_rows < target_rows ) {
while( curr_rows < target_rows ) {
@@ -400,13 +405,6 @@ $(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')) {
@@ -479,12 +477,18 @@ $(document).ready(function() {
.each(function() {
tabindex++;
$(this).attr('tabindex', tabindex);
+ // update the IDs of textfields to ensure that they are unique
+ $(this).attr('id', "field_" + tabindex + "_3");
});
$('.control_at_footer')
.each(function() {
tabindex++;
$(this).attr('tabindex', tabindex);
});
+ // Add all the required datepickers back
+ $('.datefield,.datetimefield').each(function(){
+ PMA_addDatepicker($(this));
+ });
}
else if( curr_rows > target_rows) {
while(curr_rows > target_rows) {
hooks/post-receive
--
phpMyAdmin
More information about the Git
mailing list