bug #3064963 tabindex wrong for generated inserted rows

This commit is contained in:
Marc Delisle
2010-09-13 12:48:05 -04:00
parent a4bb5d3e32
commit 13b7e75428
2 changed files with 18 additions and 4 deletions

View File

@@ -424,6 +424,20 @@ $(document).ready(function() {
}
curr_rows++;
}
// recompute tabindex for text fields and other controls at footer;
// IMO it's not really important to handle the tabindex for
// function and Null
var tabindex = 0;
$('.textfield')
.each(function() {
tabindex++;
$(this).attr('tabindex', tabindex);
});
$('.control_at_footer')
.each(function() {
tabindex++;
$(this).attr('tabindex', tabindex);
});
}
else if( curr_rows > target_rows) {
while(curr_rows > target_rows) {