mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 07:09:20 +01:00
Fix warning to only come when app JS object is missing
This commit is contained in:
parent
ac3bf1726e
commit
b86173ad16
@ -159,18 +159,14 @@
|
|||||||
// Initialize application js
|
// Initialize application js
|
||||||
var callback = null;
|
var callback = null;
|
||||||
// Only initialize once
|
// Only initialize once
|
||||||
if(typeof app[window.egw_appName] == "function")
|
if(typeof app[window.egw_appName] == "object")
|
||||||
{
|
{
|
||||||
(function() { new app[window.egw_appName]();}).call();
|
callback = function(et2) {app[window.egw_appName].et2_ready(et2);};
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
egw.debug("warn", "Did not load '%s' JS object",window.egw_appName);
|
egw.debug("warn", "Did not load '%s' JS object",window.egw_appName);
|
||||||
}
|
}
|
||||||
if(typeof app[window.egw_appName] == "object")
|
|
||||||
{
|
|
||||||
callback = function(et2) {app[window.egw_appName].et2_ready(et2);};
|
|
||||||
}
|
|
||||||
var node = document.getElementById(data.DOMNodeID);
|
var node = document.getElementById(data.DOMNodeID);
|
||||||
if(!node)
|
if(!node)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user