Merge pull request #146 from bakulf/remove

Correct remove method for tabs #145
This commit is contained in:
luke crouch 2017-02-03 15:26:21 -06:00 committed by GitHub
commit c08752dbbc

View file

@ -322,8 +322,9 @@ Logic.registerPanel(P_CONTAINER_INFO, {
hideShowLabel.innerText = identity.hasHiddenTabs ? "Show these container tabs" : "Hide these container tabs"; hideShowLabel.innerText = identity.hasHiddenTabs ? "Show these container tabs" : "Hide these container tabs";
// Let's remove all the previous tabs. // Let's remove all the previous tabs.
for (let trTab of document.getElementsByClassName("container-info-tab-row")) { // eslint-disable-line prefer-const const table = document.getElementById("container-info-table");
trTab.remove(); while (table.firstChild) {
table.firstChild.remove();
} }
// Let's retrieve the list of tabs. // Let's retrieve the list of tabs.