feedit_ajax.patch

Administrator Admin, 2010-01-27 09:17

Download (3.38 KB)

View differences:

typo3_src/t3lib/class.t3lib_tceforms.php 2010-01-25 18:46:06.000000000 +0100
5317 5317
			$pageRenderer->addInlineSettingArray('', $typo3Settings);
5318 5318

  
5319 5319
			$this->loadJavascriptLib('../t3lib/js/extjs/tceforms.js');
5320

  
5320
				if (TYPO3_MODE=='FE') {
5321
					$out.= 'TYPO3.TCEFORMS.setFEMode("'.TYPO3_mainDir.'");';
5322
				}
5323
			
5321 5324
				// if IRRE fields were processed, add the JavaScript functions:
5322 5325
			if ($this->inline->inlineCount) {
5323 5326
				$GLOBALS['SOBE']->doc->getPageRenderer()->loadScriptaculous();
typo3_src/t3lib/js/extjs/tceforms.js 2010-01-27 09:05:26.000000000 +0100
29 29

  
30 30
	// class to manipulate TCEFORMS
31 31
TYPO3.TCEFORMS = {
32

  
32
	
33 33
	init: function() {
34 34
		Ext.QuickTips.init();
35

  
35
		
36 36
		this.convertDateFieldsToDatePicker();
37 37
		this.convertTextareasResizable();
38 38
	},
39

  
39
	
40
	setFEMode: function(value) {	
41
		if (!TYPO3.configuration) {
42
			TYPO3.configuration={};
43
			TYPO3.configuration.PATH_typo3 =value;
44
		}
45
		TYPO3.configuration.FEMode=1;	
46
		 
47
		},
48
	
40 49
	convertDateFieldsToDatePicker: function() {
41 50
		var dateFields = Ext.select("*[id^=tceforms-datefield-], *[id^=tceforms-datetimefield-]");
42 51
		dateFields.each(function(element) {
typo3_src/t3lib/jsfunc.inline.js 2010-01-27 09:04:43.000000000 +0100
130 130
		var max, url='', urlParams='', options={};
131 131
		if (method && params && params.length && this.lockAjaxMethod(method, lock)) {
132 132
			url = 'ajax.php';
133
			if (TYPO3.configuration && TYPO3.configuration.FEMode) {
134
				url = TYPO3.configuration.PATH_typo3 +url;
135
			}
133 136
			urlParams = '&ajaxID=t3lib_TCEforms_inline::'+method;
134 137
			for (var i=0, max=params.length; i<max; i++) {
135 138
				urlParams += '&ajax['+i+']='+params[i];
typo3_src/typo3/backend.php 2010-01-26 18:45:33.000000000 +0100
356 356
			'username' => htmlspecialchars($GLOBALS['BE_USER']->user['username']),
357 357
			'uniqueID' => t3lib_div::shortMD5(uniqid('')),
358 358
			'securityLevel' => $this->loginSecurityLevel,
359
			'FEMode' => 0,
359 360
			'TYPO3_mainDir' => TYPO3_mainDir,
360 361
			'pageModule' => $pageModule,
361 362
			'condensedMode' => $GLOBALS['BE_USER']->uc['condensedMode'] ? 1 : 0 ,
typo3_src/typo3/jsfunc.tbe_editor.js 2010-01-26 18:50:31.000000000 +0100
329 329
		var table = TBE_EDITOR.split(fName, "[", idx);
330 330
		var uid = TBE_EDITOR.split(fName, "[", idx+1);
331 331
		var field = TBE_EDITOR.split(fName, "[", idx+2);
332

  
332
		if (TYPO3.configuration && TYPO3.configuration.FEMode) {
333
			idx=idx-1;
334
		}
335
		
333 336
		table = table.substr(0,table.length-1);
334 337
		uid = uid.substr(0,uid.length-1);
335 338
		field = field.substr(0,field.length-1);