[KEYCLOAK-7757] - Deleting scopes in account console doesn't work

This commit is contained in:
Pedro Igor 2018-08-20 10:35:18 -03:00
parent 9882341ecf
commit c0508aded7

View file

@ -57,24 +57,7 @@
</style>
<script>
function removeScopeElm(elm) {
var td = elm.parentNode;
var tr = td.parentNode;
var tbody = tr.parentNode;
td.removeChild(elm);
var childCount = td.childNodes.length - 1;
for (i = 0; i < td.childNodes.length; i++) {
if (!td.childNodes[i].tagName || td.childNodes[i].tagName.toUpperCase() != 'DIV') {
td.removeChild(td.childNodes[i]);
childCount--;
}
}
if (childCount <= 0) {
tbody.removeChild(tr);
}
elm.parentNode.removeChild(elm);
}
function removeAllScopes(id) {