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.tableManager.bind();
|
||||
} else {
|
||||
var tag = document.getElementById(id);
|
||||
let tag = document.getElementById(id);
|
||||
|
||||
if (tag.tagName === 'form') {
|
||||
switch(tag.tagName) {
|
||||
case 'form':
|
||||
this.formManager.bind(id);
|
||||
} else if (tag.tagName === 'table') {
|
||||
break;
|
||||
case 'table':
|
||||
this.tableManager.bind(id);
|
||||
} else if (tag.tagName === 'div') {
|
||||
// Todo: be more specific in order to handle tab
|
||||
}
|
||||
break;
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user