irre_feedit.patch

Administrator Admin, 2009-12-08 09:06

Download (1.95 KB)

View differences:

/home/webmaster/frm2/typo3_src/t3lib/class.t3lib_tceforms.php 2009-12-08 09:03:44.000000000 +0100
5322 5322
			if ($this->inline->inlineCount) {
5323 5323
				$GLOBALS['SOBE']->doc->getPageRenderer()->loadScriptaculous();
5324 5324
				$this->loadJavascriptLib('../t3lib/jsfunc.inline.js');
5325
				if (TYPO3_MODE=='FE') {
5326
					$out.= 'inline.setTypo3Path("'.TYPO3_mainDir.'")';
5327
				}
5325 5328
				$out .= '
5326 5329
				inline.setPrependFormFieldNames("'.$this->inline->prependNaming.'");
5327 5330
				inline.setNoTitleString("'.addslashes(t3lib_BEfunc::getNoRecordTitle(true)).'");
/home/webmaster/frm2/typo3_src/t3lib/jsfunc.inline.js 2009-12-08 08:51:46.000000000 +0100
32 32
var inline = {
33 33
	structureSeparator: '-',
34 34
	prependFormFieldNames: 'data',
35
	typo3Path: '',
35 36
	noTitleString: '[No title]',
36 37
	lockedAjaxMethod: {},
37 38
	sourcesLoaded: {},
......
43 44
		});
44 45
	},
45 46
	setPrependFormFieldNames: function(value) {	this.prependFormFieldNames = value; },
47
	setTypo3Path: function(value) {	this.typo3Path = value; },
46 48
	setNoTitleString: function(value) { this.noTitleString = value; },
47 49

  
48 50
	expandCollapseRecord: function(objectId, expandSingle) {
......
129 131
	makeAjaxCall: function(method, params, lock) {
130 132
		var max, url='', urlParams='', options={};
131 133
		if (method && params && params.length && this.lockAjaxMethod(method, lock)) {
132
			url = 'ajax.php';
134
			url = this.typo3Path+'ajax.php';
133 135
			urlParams = '&ajaxID=t3lib_TCEforms_inline::'+method;
134 136
			for (var i=0, max=params.length; i<max; i++) {
135 137
				urlParams += '&ajax['+i+']='+params[i];