mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
fix errors loading stylite/EPL object
This commit is contained in:
parent
2388970002
commit
3f1653bff8
@ -638,10 +638,9 @@ class InfologApp extends EgwApp {
|
||||
// use app object from etemplate2, which might be private and not just window.app
|
||||
var app = this.et2.getInstanceManager().app_obj;
|
||||
if (!app.stylite) {
|
||||
var self = this;
|
||||
egw.includeJS('/stylite/js/app.js?' + this.et2.getArrayMgr('content').getEntry('encryption_ts'), undefined, undefined, egw.webserverUrl).then(() => {
|
||||
this.egw.includeJS('/stylite/js/app.js', undefined, undefined, egw.webserverUrl).then(() => {
|
||||
app.stylite = new app.classes.stylite;
|
||||
app.stylite.et2 = self.et2;
|
||||
app.stylite.et2 = this.et2;
|
||||
if (callback) {
|
||||
callback.apply(app.stylite, attrs);
|
||||
}
|
||||
|
@ -778,12 +778,10 @@ class InfologApp extends EgwApp
|
||||
|
||||
if (!app.stylite)
|
||||
{
|
||||
var self = this;
|
||||
egw.includeJS('/stylite/js/app.js?'+this.et2.getArrayMgr('content').getEntry('encryption_ts'),
|
||||
undefined, undefined, egw.webserverUrl).then(() =>
|
||||
this.egw.includeJS('/stylite/js/app.js', undefined, undefined, egw.webserverUrl).then(() =>
|
||||
{
|
||||
app.stylite = new app.classes.stylite;
|
||||
app.stylite.et2 = self.et2;
|
||||
app.stylite.et2 = this.et2;
|
||||
if(callback)
|
||||
{
|
||||
callback.apply(app.stylite,attrs);
|
||||
|
Loading…
Reference in New Issue
Block a user