[TYPO3-dev] Problem with 'Forms on page' editing mode
Tapio Markula
tapio.markula at xetpoint.fi
Mon Sep 24 10:29:11 CEST 2007
Tapio Markula kirjoitti:
> Hi
>
> I have a problem with 'Forms on page' editing mode.
> When I try to change CType I get an alert box "This change.."
>
> The functionality doesn't work in the previous mentioned editing mode.
> The user must press always "Cancel" in order to change CType.
> I should be able to disable or fix the behavior, but I didn't find how
> to do that.
> I would need to disable that in my future plugin.
Found the problem
// 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 (
(($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() };';
} else {$alertMsgOnChange='';}
I just must disable the alert from the mode 'Forms on page' - possible
just from this mode because I have made a class file for this mode and
change in that file concerns only editing mode 'Forms on page'.
I hope that this will be fixed.
More information about the TYPO3-dev
mailing list