forked from extern/egroupware
using etemplate_new::ajax_proecess_content to allow to have etemplate still extend etemplate_old, making etemplate_new autoloadable
This commit is contained in:
parent
54b2596ff8
commit
118657ddee
@ -1495,6 +1495,8 @@ function __autoload($class)
|
||||
// fixing warnings generated by php 5.3.8 is_a($obj) trying to autoload huge strings
|
||||
if (strlen($class) > 64) return;
|
||||
|
||||
if ($class == 'etemplate_new') $class = 'etemplate';
|
||||
|
||||
$components = explode('_',$class);
|
||||
$app = array_shift($components);
|
||||
// classes using the new naming schema app_class_name, eg. admin_cmd
|
||||
|
@ -119,7 +119,7 @@
|
||||
}
|
||||
if(typeof app[window.egw_appName] == "object")
|
||||
{
|
||||
callback = function(et2) {app[window.egw_appName].et2_ready(et2)};
|
||||
callback = function(et2) {app[window.egw_appName].et2_ready(et2);};
|
||||
}
|
||||
var node = document.getElementById(data.DOMNodeID);
|
||||
if(!node)
|
||||
@ -128,7 +128,7 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
var et2 = new etemplate2(node, "etemplate::ajax_process_content");
|
||||
var et2 = new etemplate2(node, "etemplate_new::ajax_process_content");
|
||||
et2.load(data.name,data.url,data.data,callback);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user