fix not being able to close PM tabs

This commit is contained in:
mappu 2017-10-27 23:44:18 +13:00
parent 2eacb06c9e
commit fafca96711

View File

@ -509,11 +509,11 @@ var tab_free = function(id) {
if (id === "tab-main") return;
// remove tab item and body
var el = el("#tabitem-"+id);
el.parentNode.removeChild(el);
var $el = el("#tabitem-"+id);
$el.parentNode.removeChild($el);
var el = el("#"+id);
el.parentNode.removeChild(el);
$el = el("#"+id);
$el.parentNode.removeChild($el);
// clear from PM tabs
for (var i in pm_tabs) {