From df2e3a5e92054915ba280073a76126342ebedd01 Mon Sep 17 00:00:00 2001 From: Charles Shin Date: Fri, 14 Jun 2019 13:29:29 -0700 Subject: [PATCH] DIV-944: Updated child add cancel button to remove empty row on the children table. --- edivorce/apps/core/static/js/main.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/edivorce/apps/core/static/js/main.js b/edivorce/apps/core/static/js/main.js index d1b2a09c..1863c3fd 100755 --- a/edivorce/apps/core/static/js/main.js +++ b/edivorce/apps/core/static/js/main.js @@ -469,6 +469,11 @@ $(function () { $('#btn_revert_child').on('click', function(e) { e.preventDefault(); returnToParent({persist: false}); + + // Delete Empty row added to the children table. + // Empty row will always be the last row of the table. + var $element = $('#claimant_children').find('tbody:first').find('tr:last'); + deleteAddedTableRow($element); }); $('#claimant_children').each(function(){