Bug #20941 » feedit_ajax.patch
typo3_src/t3lib/class.t3lib_tceforms.php 2010-01-25 18:46:06.000000000 +0100 | ||
---|---|---|
$pageRenderer->addInlineSettingArray('', $typo3Settings);
|
||
$this->loadJavascriptLib('../t3lib/js/extjs/tceforms.js');
|
||
if (TYPO3_MODE=='FE') {
|
||
$out.= 'TYPO3.TCEFORMS.setFEMode("'.TYPO3_mainDir.'");';
|
||
}
|
||
|
||
// if IRRE fields were processed, add the JavaScript functions:
|
||
if ($this->inline->inlineCount) {
|
||
$GLOBALS['SOBE']->doc->getPageRenderer()->loadScriptaculous();
|
typo3_src/t3lib/js/extjs/tceforms.js 2010-01-27 09:05:26.000000000 +0100 | ||
---|---|---|
// class to manipulate TCEFORMS
|
||
TYPO3.TCEFORMS = {
|
||
|
||
init: function() {
|
||
Ext.QuickTips.init();
|
||
|
||
this.convertDateFieldsToDatePicker();
|
||
this.convertTextareasResizable();
|
||
},
|
||
|
||
setFEMode: function(value) {
|
||
if (!TYPO3.configuration) {
|
||
TYPO3.configuration={};
|
||
TYPO3.configuration.PATH_typo3 =value;
|
||
}
|
||
TYPO3.configuration.FEMode=1;
|
||
|
||
},
|
||
|
||
convertDateFieldsToDatePicker: function() {
|
||
var dateFields = Ext.select("*[id^=tceforms-datefield-], *[id^=tceforms-datetimefield-]");
|
||
dateFields.each(function(element) {
|
typo3_src/t3lib/jsfunc.inline.js 2010-01-27 09:04:43.000000000 +0100 | ||
---|---|---|
var max, url='', urlParams='', options={};
|
||
if (method && params && params.length && this.lockAjaxMethod(method, lock)) {
|
||
url = 'ajax.php';
|
||
if (TYPO3.configuration && TYPO3.configuration.FEMode) {
|
||
url = TYPO3.configuration.PATH_typo3 +url;
|
||
}
|
||
urlParams = '&ajaxID=t3lib_TCEforms_inline::'+method;
|
||
for (var i=0, max=params.length; i<max; i++) {
|
||
urlParams += '&ajax['+i+']='+params[i];
|
typo3_src/typo3/backend.php 2010-01-26 18:45:33.000000000 +0100 | ||
---|---|---|
'username' => htmlspecialchars($GLOBALS['BE_USER']->user['username']),
|
||
'uniqueID' => t3lib_div::shortMD5(uniqid('')),
|
||
'securityLevel' => $this->loginSecurityLevel,
|
||
'FEMode' => 0,
|
||
'TYPO3_mainDir' => TYPO3_mainDir,
|
||
'pageModule' => $pageModule,
|
||
'condensedMode' => $GLOBALS['BE_USER']->uc['condensedMode'] ? 1 : 0 ,
|
typo3_src/typo3/jsfunc.tbe_editor.js 2010-01-26 18:50:31.000000000 +0100 | ||
---|---|---|
var table = TBE_EDITOR.split(fName, "[", idx);
|
||
var uid = TBE_EDITOR.split(fName, "[", idx+1);
|
||
var field = TBE_EDITOR.split(fName, "[", idx+2);
|
||
if (TYPO3.configuration && TYPO3.configuration.FEMode) {
|
||
idx=idx-1;
|
||
}
|
||
|
||
table = table.substr(0,table.length-1);
|
||
uid = uid.substr(0,uid.length-1);
|
||
field = field.substr(0,field.length-1);
|