mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-02-12 23:58:39 +00:00
Integrate generalUI
This commit is contained in:
parent
76271c1177
commit
d898e200e4
|
|
@ -31,6 +31,7 @@
|
||||||
this.tableManager = new jsOMS.UI.Component.Table(this.app.responseManager);
|
this.tableManager = new jsOMS.UI.Component.Table(this.app.responseManager);
|
||||||
this.actionManager = new jsOMS.UI.ActionManager(this.app);
|
this.actionManager = new jsOMS.UI.ActionManager(this.app);
|
||||||
this.dragNDrop = new jsOMS.UI.DragNDrop(this.app);
|
this.dragNDrop = new jsOMS.UI.DragNDrop(this.app);
|
||||||
|
this.generalUI = new jsOMS.UI.GeneralUI();
|
||||||
|
|
||||||
let self = this;
|
let self = this;
|
||||||
this.domObserver = new MutationObserver(function(mutations) {
|
this.domObserver = new MutationObserver(function(mutations) {
|
||||||
|
|
@ -60,8 +61,10 @@
|
||||||
this.tableManager.bind();
|
this.tableManager.bind();
|
||||||
this.actionManager.bind();
|
this.actionManager.bind();
|
||||||
this.dragNDrop.bind();
|
this.dragNDrop.bind();
|
||||||
|
this.generalUI.bind();
|
||||||
} else {
|
} else {
|
||||||
const tag = document.getElementById(id);
|
const tag = document.getElementById(id);
|
||||||
|
this.generalUI.bind(tag);
|
||||||
|
|
||||||
if(!tag) {
|
if(!tag) {
|
||||||
return;
|
return;
|
||||||
|
|
@ -169,4 +172,19 @@
|
||||||
{
|
{
|
||||||
return this.domObserver;
|
return this.domObserver;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get general UI
|
||||||
|
*
|
||||||
|
* @return {Object}
|
||||||
|
*
|
||||||
|
* @method
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
*/
|
||||||
|
jsOMS.UI.UIManager.prototype.getGeneralUI = function ()
|
||||||
|
{
|
||||||
|
return this.generalUI;
|
||||||
|
};
|
||||||
}(window.jsOMS = window.jsOMS || {}));
|
}(window.jsOMS = window.jsOMS || {}));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user