Project

General

Profile

Bug #14706 ยป class.t3lib_tceforms.diff

Administrator Admin, 2005-04-27 15:41

View differences:

class.t3lib_tceforms.php 2005-04-27 15:28:23.526495904 +0200
$PA['itemFormElValue']=$row[$field]; // The value to show in the form field.
// Create a JavaScript code line which will ask the user to save/update the form due to changing the element. This is used for eg. "type" fields and others configured with "requestUpdate"
if (
if (
(($TCA[$table]['ctrl']['type'] && !strcmp($field,$TCA[$table]['ctrl']['type'])) ||
($TCA[$table]['ctrl']['requestUpdate'] && t3lib_div::inList($TCA[$table]['ctrl']['requestUpdate'],$field)))
&& !$BE_USER->uc['noOnChangeAlertInTypeFields']) {
$alertMsgOnChange = 'if (confirm('.$GLOBALS['LANG']->JScharCode($this->getLL('m_onChangeAlert')).') && TBE_EDITOR_checkSubmit(-1)){ TBE_EDITOR_submitForm() };';
) {
if(!$BE_USER->uc['noOnChangeAlertInTypeFields']){
$alertMsgOnChange = 'if (confirm('.$GLOBALS['LANG']->JScharCode($this->getLL('m_onChangeAlert')).') && TBE_EDITOR_checkSubmit(-1)){ TBE_EDITOR_submitForm() };';
}else{
$alertMsgOnChange='TBE_EDITOR_submitForm()';
}
} else {$alertMsgOnChange='';}
// Render as a hidden field?
    (1-1/1)