forked from extern/egroupware
Moved removal of standard javascript files from egw_framework class to
egw_json, as it did not work in all cases
This commit is contained in:
parent
f42ee4b026
commit
fccbe5fcbd
@ -81,14 +81,6 @@ abstract class egw_framework
|
||||
$GLOBALS['egw']->framework = $this;
|
||||
}
|
||||
$this->template_dir = '/phpgwapi/templates/'.$template;
|
||||
|
||||
// for Ajax: no need to load the "standard" files, they are already loaded
|
||||
// in fact jquery has a problem if loaded twice
|
||||
if ($_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest')
|
||||
{
|
||||
self::$js_include_files = array();
|
||||
}
|
||||
error_log(array2string($_SERVER));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -122,6 +122,10 @@ class egw_json_request
|
||||
$ajaxClass = CreateObject($appName.'.'.$className);
|
||||
}
|
||||
|
||||
// for Ajax: no need to load the "standard" javascript files,
|
||||
// they are already loaded, in fact jquery has a problem if loaded twice
|
||||
egw_framework::js_files(array());
|
||||
|
||||
$parameters = translation::convert($parameters, 'utf-8');
|
||||
|
||||
call_user_func_array(array($ajaxClass, $functionName), $parameters);
|
||||
|
Loading…
Reference in New Issue
Block a user