[KEYCLOAK-7757] - Deleting scopes in account console doesn't work
This commit is contained in:
parent
9882341ecf
commit
c0508aded7
1 changed files with 1 additions and 18 deletions
|
@ -57,24 +57,7 @@
|
||||||
</style>
|
</style>
|
||||||
<script>
|
<script>
|
||||||
function removeScopeElm(elm) {
|
function removeScopeElm(elm) {
|
||||||
var td = elm.parentNode;
|
elm.parentNode.removeChild(elm);
|
||||||
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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function removeAllScopes(id) {
|
function removeAllScopes(id) {
|
||||||
|
|
Loading…
Reference in a new issue