[Phpmyadmin-git] [SCM] phpMyAdmin branch, master, updated. RELEASE_3_4_0BETA1-1410-g032d6d5

Marc Delisle lem9 at users.sourceforge.net
Mon Jan 3 16:10:33 CET 2011


The branch, master has been updated
       via  032d6d5e0cbd16a071bbfe70f68d5008f3a07727 (commit)
      from  cfca67f4229d480b34dc5e5ca49cb3ea5e2bb911 (commit)


- Log -----------------------------------------------------------------
commit 032d6d5e0cbd16a071bbfe70f68d5008f3a07727
Author: Marc Delisle <marc at infomarc.info>
Date:   Mon Jan 3 10:10:24 2011 -0500

    The Ignore checkbox is not unticked when data is inserted inside rows added with Continue insertion

-----------------------------------------------------------------------

Summary of changes:
 js/tbl_change.js |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/js/tbl_change.js b/js/tbl_change.js
index 861ee99..66f5976 100644
--- a/js/tbl_change.js
+++ b/js/tbl_change.js
@@ -407,12 +407,16 @@ $(document).ready(function() {
                         $this_element
                         .attr('value', '')
                         .unbind('change')
-                        .attr('onchange', null)
+                        // Keep these values to be used when the element
+                        // will change
+                        .data('hashed_field', hashed_field)
+                        .data('new_row_index', new_row_index)
                         .bind('change', function(e) {
+                            var $changed_element = $(this);
                             Validator(
-                                hashed_field, 
-                                new_row_index, 
-                                $this_element.closest('tr').find('span.column_type').html()
+                                $changed_element.data('hashed_field'), 
+                                $changed_element.data('new_row_index'), 
+                                $changed_element.closest('tr').find('span.column_type').html()
                                 );
                         });
                     }


hooks/post-receive
-- 
phpMyAdmin




More information about the Git mailing list