diff --git a/domain-server/resources/web/js/settings.js b/domain-server/resources/web/js/settings.js index ce8352e35c..385759b79c 100644 --- a/domain-server/resources/web/js/settings.js +++ b/domain-server/resources/web/js/settings.js @@ -425,6 +425,9 @@ function addTableRow(add_glyphicon) { if (isArray) { updateDataChangedForSiblingRows(row, true) + + // the addition of any table row should remove the empty-array-row + row.siblings('.empty-array-row').remove() } badgeSidebarForDifferences($(table)) @@ -451,6 +454,9 @@ function deleteTableRow(delete_glyphicon) { // this is the last row, we can't remove it completely since we need to post an empty array row.empty() + row.removeClass('new-row row-data') + row.addClass('empty-array-row') + row.html(""); }