forked from extern/egroupware
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
|
||||
var callback = null;
|
||||
// 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
|
||||
{
|
||||
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);
|
||||
if(!node)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user