Merge pull request #16249 from roxanneskelly/bugz1381

BUGZ-1381 - domain server creates blank/undefined group when adding groups
This commit is contained in:
Shannon Romano 2019-09-26 12:28:39 -07:00 committed by GitHub
commit 1e67f1e914
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -250,14 +250,14 @@ $(document).ready(function(){
// set focus to the first input in the new row
$target.closest('table').find('tr.inputs input:first').focus();
}
} else {
var tableRows = sibling.parent();
var tableBody = tableRows.parent();
var tableRows = sibling.parent();
var tableBody = tableRows.parent();
// if theres no more siblings, we should jump to a new row
if (sibling.next().length == 0 && tableRows.nextAll().length == 1) {
tableBody.find("." + Settings.ADD_ROW_BUTTON_CLASS).click();
// if theres no more siblings, we should jump to a new row
if (sibling.next().length == 0 && tableRows.nextAll().length == 1) {
tableBody.find("." + Settings.ADD_ROW_BUTTON_CLASS).click();
}
}
}