The branch, master has been updated via 032d6d5e0cbd16a071bbfe70f68d5008f3a07727 (commit) from cfca67f4229d480b34dc5e5ca49cb3ea5e2bb911 (commit)
- Log ----------------------------------------------------------------- commit 032d6d5e0cbd16a071bbfe70f68d5008f3a07727 Author: Marc Delisle marc@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