Merged #2854 and updated to increment only the deleterow button

This commit is contained in:
Stephen Beaver 2016-04-11 08:39:33 -04:00
parent dbe64b7175
commit 5ed4eb307f

View File

@ -313,8 +313,8 @@ function add_row() {
$(this).val('');
});
// Increment the suffix number for each button element in the new group
$(newGroup).find('button').each(function() {
// Increment the suffix number for the deleterow button element in the new group
$(newGroup).find('[id^=deleterow]').each(function() {
$(this).prop("id", bumpStringInt(this.id));
$(this).prop("name", bumpStringInt(this.name));
});