fix not being able to close PM tabs
This commit is contained in:
parent
2eacb06c9e
commit
fafca96711
@ -509,11 +509,11 @@ var tab_free = function(id) {
|
|||||||
if (id === "tab-main") return;
|
if (id === "tab-main") return;
|
||||||
|
|
||||||
// remove tab item and body
|
// remove tab item and body
|
||||||
var el = el("#tabitem-"+id);
|
var $el = el("#tabitem-"+id);
|
||||||
el.parentNode.removeChild(el);
|
$el.parentNode.removeChild($el);
|
||||||
|
|
||||||
var el = el("#"+id);
|
$el = el("#"+id);
|
||||||
el.parentNode.removeChild(el);
|
$el.parentNode.removeChild($el);
|
||||||
|
|
||||||
// clear from PM tabs
|
// clear from PM tabs
|
||||||
for (var i in pm_tabs) {
|
for (var i in pm_tabs) {
|
||||||
|
Loading…
Reference in New Issue
Block a user