From 032d6d5e0cbd16a071bbfe70f68d5008f3a07727 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Mon, 3 Jan 2011 10:10:24 -0500 Subject: [PATCH] The Ignore checkbox is not unticked when data is inserted inside rows added with Continue insertion --- js/tbl_change.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/js/tbl_change.js b/js/tbl_change.js index 861ee997f..66f597620 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() ); }); }