fix for delete of last row in array table

This commit is contained in:
Stephen Birarda 2014-10-23 11:54:30 -07:00
parent da75073357
commit 9364c3b342

View file

@ -529,7 +529,7 @@ function deleteTableRow(delete_glyphicon) {
row.html("<input type='hidden' class='form-control' name='"
+ row.attr('name') + "' data-changed='true' value=''>");
} else {
if (table.find('.' + Settings.DATA_ROW_CLASS).length) {
if (table.find('.' + Settings.DATA_ROW_CLASS).length > 1) {
updateDataChangedForSiblingRows(row)
// this isn't the last row - we can just remove it