Project

General

Profile

Bug #20941 » 0011805_v3.patch

Administrator Admin, 2010-02-27 19:04

View differences:

t3lib/jsfunc.inline.js (Arbeitskopie)
makeAjaxCall: function(method, params, lock) {
var max, url='', urlParams='', options={};
if (method && params && params.length && this.lockAjaxMethod(method, lock)) {
url = 'ajax.php';
url = TBE_EDITOR.getBackendPath() + 'ajax.php';
urlParams = '&ajaxID=t3lib_TCEforms_inline::'+method;
for (var i=0, max=params.length; i<max; i++) {
urlParams += '&ajax['+i+']='+params[i];
t3lib/class.t3lib_tceforms_fe.php (Arbeitskopie)
public function initializeTemplateContainer() {
t3lib_div::requireOnce(PATH_typo3 . 'template.php');
$GLOBALS['TBE_TEMPLATE'] = t3lib_div::makeInstance('frontendDoc');
$GLOBALS['TBE_TEMPLATE']->getPageRenderer()->addInlineSetting(
'', 'PATH_typo3', t3lib_div::dirname(t3lib_div::getIndpEnv('SCRIPT_NAME')) . '/' . TYPO3_mainDir
);
$GLOBALS['SOBE'] = new stdClass();
$GLOBALS['SOBE']->doc = $GLOBALS['TBE_TEMPLATE'];
typo3/jsfunc.tbe_editor.js (Arbeitskopie)
}
}
return false;
}
},
/**
* Determines backend path to be used for e.g. ajax.php
* @return string
*/
getBackendPath: function() {
var backendPath = '';
if (TYPO3) {
if (TYPO3.configuration && TYPO3.configuration.PATH_typo3) {
backendPath = TYPO3.configuration.PATH_typo3;
} else if (TYPO3.settings && TYPO3.settings.PATH_typo3) {
backendPath = TYPO3.settings.PATH_typo3;
}
}
return backendPath;
}
};
function typoSetup () {
(4-4/4)