mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-01-11 17:58:41 +00:00
Clean up tag handle
This commit is contained in:
parent
a68c76d3de
commit
6aed622a57
|
|
@ -41,15 +41,16 @@
|
||||||
this.tabManager.bind();
|
this.tabManager.bind();
|
||||||
this.tableManager.bind();
|
this.tableManager.bind();
|
||||||
} else {
|
} else {
|
||||||
var tag = document.getElementById(id);
|
let tag = document.getElementById(id);
|
||||||
|
|
||||||
if (tag.tagName === 'form') {
|
switch(tag.tagName) {
|
||||||
this.formManager.bind(id);
|
case 'form':
|
||||||
} else if (tag.tagName === 'table') {
|
this.formManager.bind(id);
|
||||||
this.tableManager.bind(id);
|
break;
|
||||||
} else if (tag.tagName === 'div') {
|
case 'table':
|
||||||
// Todo: be more specific in order to handle tab
|
this.tableManager.bind(id);
|
||||||
}
|
break;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user