Merge pull request #3650 from birarda/domain-tunnel

fix for delete of last row in array table
This commit is contained in:
Stephen Birarda 2014-10-23 11:55:07 -07:00
commit 397bda586e

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