Project

General

Profile

Bug #24683 » 17167_v3.diff

Administrator Admin, 2011-01-20 19:24

View differences:

t3lib/extjs/class.t3lib_extjs_extdirectapi.php (Arbeitskopie)
$javascriptNamespaces = unserialize($cacheContent);
}
// enable caching
$expireDate = date('r', $GLOBALS['EXEC_TIME'] + 3600 * 24 * 30);
header('Expires: ' . $expireDate);
header('Cache-control: public');
header('Pragma:');
// return the generated javascript API configuration
if (count($javascriptNamespaces)) {
$setup = '
typo3/classes/class.livesearch.php (Arbeitskopie)
*/
protected function addJavascriptToBackend() {
$pageRenderer = $GLOBALS['TBE_TEMPLATE']->getPageRenderer();
$pageRenderer->addJsFile('ajax.php?ajaxID=ExtDirect::getAPI&namespace=TYPO3.LiveSearchActions', 'text/javascript', $compress = FALSE);
$pageRenderer->addJsFile('ajax.php?ajaxID=ExtDirect::getAPI&namespace=TYPO3.LiveSearchActions&' . TYPO3_version, 'text/javascript', $compress = FALSE);
$this->backendReference->addJavascriptFile('js/livesearch.js');
}
typo3/template.php (Arbeitskopie)
if ($this->extDirectStateProvider) {
$this->pageRenderer->addJsFile(
$this->backPath . 'ajax.php?ajaxID=ExtDirect::getAPI&namespace=TYPO3.ExtDirectStateProvider',
$this->backPath . 'ajax.php?ajaxID=ExtDirect::getAPI&namespace=TYPO3.ExtDirectStateProvider&' . TYPO3_version,
NULL,
FALSE
);
......
protected function loadCshJavascript() {
$this->pageRenderer->loadExtJS();
$this->pageRenderer->addJsFile($this->backPath .'../t3lib/js/extjs/contexthelp.js');
$this->pageRenderer->addJsFile($this->backPath . 'ajax.php?ajaxID=ExtDirect::getAPI&namespace=TYPO3.CSH', NULL, FALSE);
$this->pageRenderer->addJsFile($this->backPath . 'ajax.php?ajaxID=ExtDirect::getAPI&namespace=TYPO3.CSH&' . TYPO3_version, NULL, FALSE);
$this->pageRenderer->addExtDirectCode();
}
typo3/backend.php (Arbeitskopie)
if (isset($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ExtDirect']) && is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ExtDirect'])) {
foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ExtDirect'] as $key => $value) {
if (strpos($key, 'TYPO3.Ajax.ExtDirect') !== FALSE) {
$this->pageRenderer->addJsFile('ajax.php?ajaxID=ExtDirect::getAPI&namespace=TYPO3.Ajax.ExtDirect', NULL, FALSE);
$this->pageRenderer->addJsFile('ajax.php?ajaxID=ExtDirect::getAPI&namespace=TYPO3.Ajax.ExtDirect&' . TYPO3_version, NULL, FALSE);
break;
}
}
}
$this->pageRenderer->addJsFile('ajax.php?ajaxID=ExtDirect::getAPI&namespace=TYPO3.BackendUserSettings', NULL, FALSE);
$this->pageRenderer->addJsFile('ajax.php?ajaxID=ExtDirect::getAPI&namespace=TYPO3.BackendUserSettings&' . TYPO3_version, NULL, FALSE);
$this->generateJavascript();
$this->pageRenderer->addJsInlineCode('BackendInlineJavascript', $this->js);
......
if (is_array($info['extDirectNamespaces']) && count($info['extDirectNamespaces'])) {
foreach ($info['extDirectNamespaces'] as $namespace) {
$this->pageRenderer->addJsFile(
'ajax.php?ajaxID=ExtDirect::getAPI&namespace=' . $namespace,
'ajax.php?ajaxID=ExtDirect::getAPI&namespace=' . $namespace . '&' . TYPO3_version,
NULL,
FALSE
);
typo3/sysext/em/classes/class.tx_em_extensionmanager.php (Arbeitskopie)
// Load JavaScript:
$this->pageRenderer->addJsFile($this->parentObject->doc->backPath .
'ajax.php?ajaxID=ExtDirect::getAPI&namespace=TYPO3.EM',
'ajax.php?ajaxID=ExtDirect::getAPI&namespace=TYPO3.EM&' . TYPO3_version,
NULL,
FALSE
);
$this->pageRenderer->addJsFile($this->parentObject->doc->backPath .
'ajax.php?ajaxID=ExtDirect::getAPI&namespace=TYPO3.EMSOAP',
'ajax.php?ajaxID=ExtDirect::getAPI&namespace=TYPO3.EMSOAP&' . TYPO3_version,
NULL,
FALSE
);
(3-3/4)