Project

General

Profile

Feature #19258 ยป t3lib_tceforms-javascript.diff

Administrator Admin, 2008-08-27 11:09

View differences:

t3lib/class.t3lib_tceforms.php (copie de travail)
$elements[$record][$field]['rangeImg'] = $range['imgName'];
}
}
// Hook: JSbottom_preProcess
foreach ($this->hookObjectsMainFields as $hookObj) {
if (method_exists($hookObj,'JSbottom_preProcess')) {
$hookObj->JSbottom_preProcess($formname, $update, $elements, $this);
}
}
$this->TBE_EDITOR_fieldChanged_func='TBE_EDITOR.fieldChanged_fName(fName,formObj[fName+"_list"]);';
......
// if IRRE fields were processed, add the JavaScript functions:
if ($this->inline->inlineCount) {
$jsFile[] = '<script src="'.$this->backPath.'contrib/scriptaculous/scriptaculous.js" type="text/javascript"></script>';
$jsFile[] = '<script src="'.$this->backPath.'../t3lib/jsfunc.inline.js" type="text/javascript"></script>';
$out .= '
inline.setPrependFormFieldNames("'.$this->inline->prependNaming.'");
......
TBE_EDITOR.labels.onChangeAlert = '.$GLOBALS['LANG']->JScharCode($this->getLL('m_onChangeAlert')).';
evalFunc.USmode = '.($GLOBALS['TYPO3_CONF_VARS']['SYS']['USdateFormat']?'1':'0').';
';
// Hook: JSbottom_postProcess
foreach ($this->hookObjectsMainFields as $hookObj) {
if (method_exists($hookObj,'JSbottom_postProcess')) {
$hookObj->JSbottom_postProcess($formname, $update, $jsFile, $elements, $out, $this);
}
}
}
// add JS required for inline fields
    (1-1/1)