Fix typo in missing JS object warning

This commit is contained in:
Nathan Gray 2013-04-10 10:10:14 +00:00
parent 4de7d2f432
commit fdada6c3c0

View File

@ -194,7 +194,7 @@ class etemplate_new extends etemplate_widget_template
{ {
(function() { new app["'.$app.'"]();}).call(); (function() { new app["'.$app.'"]();}).call();
} ' . (!file_exists(EGW_SERVER_ROOT.'/'.$app.'/js/app.js') ? '' :' } ' . (!file_exists(EGW_SERVER_ROOT.'/'.$app.'/js/app.js') ? '' :'
} else { egw.debug("warn", "Did not load '.$app.' JS object"); }').' else { egw.debug("warn", "Did not load '.$app.' JS object"); }').'
if(typeof app["'.$app.'"] == "object") if(typeof app["'.$app.'"] == "object")
{ {
callback = function() {new app["'.$app.'"]()}; callback = function() {new app["'.$app.'"]()};
@ -222,7 +222,7 @@ class etemplate_new extends etemplate_widget_template
{ {
(function() { new app["'.$app.'"]();}).call(); (function() { new app["'.$app.'"]();}).call();
} ' . (!file_exists(EGW_SERVER_ROOT.'/'.$app.'/js/app.js') ? '' :' } ' . (!file_exists(EGW_SERVER_ROOT.'/'.$app.'/js/app.js') ? '' :'
} else { egw.debug("warn", "Did not load '.$app.' JS object"); }') . ' else { egw.debug("warn", "Did not load '.$app.' JS object"); }') . '
if(typeof app["'.$app.'"] == "object") if(typeof app["'.$app.'"] == "object")
{ {
callback = function(et2) {app["'.$app.'"].et2_ready(et2)}; callback = function(et2) {app["'.$app.'"].et2_ready(et2)};