Merge pull request #146 from bakulf/remove
Correct remove method for tabs #145
This commit is contained in:
commit
f82d41ec03
1 changed files with 3 additions and 2 deletions
|
@ -322,8 +322,9 @@ Logic.registerPanel(P_CONTAINER_INFO, {
|
|||
hideShowLabel.innerText = identity.hasHiddenTabs ? "Show these container tabs" : "Hide these container tabs";
|
||||
|
||||
// Let's remove all the previous tabs.
|
||||
for (let trTab of document.getElementsByClassName("container-info-tab-row")) { // eslint-disable-line prefer-const
|
||||
trTab.remove();
|
||||
const table = document.getElementById("container-info-table");
|
||||
while (table.firstChild) {
|
||||
table.firstChild.remove();
|
||||
}
|
||||
|
||||
// Let's retrieve the list of tabs.
|
||||
|
|
Loading…
Add table
Reference in a new issue