[FEATURE] Leaving edit by clicking in page tree does not show a warning 75/53075/13
authorOliver Hader <oliver@typo3.org>
Sat, 3 Jun 2017 12:54:54 +0000 (14:54 +0200)
committerSusanne Moog <susanne.moog@typo3.org>
Tue, 13 Jun 2017 10:38:45 +0000 (12:38 +0200)
commit72edfd5eac9609915f4a408e5e957b077aad922a
tree922b3a1c3d76f624965bc337fb2e099c4d378cf8
parente2831aa5ca279ad58b6bc9f19d0fbc51c61e5394
[FEATURE] Leaving edit by clicking in page tree does not show a warning

If edit forms have unsaved changes, changing the IFRAME URL is caught by
explicitly sending interaction requests that are handled by individual
client components, such as the FormEngine. This feature does not use the
Window.beforeunload event, but some custom messaging API instead.

Click events on the ExtJS page-tree are caught if those trigger a change
request for the content component, however highlighting the clicked page
node is not caught due to nested ExtJS event hierarchies.

Resolves: #77268
Releases: master
Change-Id: I3e2359cf27d95197b17e8d8489759ace403ce1af
Reviewed-on: https://review.typo3.org/53075
Tested-by: TYPO3com <no-reply@typo3.com>
Tested-by: Jasmina LieƟmann <code@frauliessmann.de>
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
23 files changed:
typo3/sysext/backend/Resources/Private/TypeScript/BackendException.ts [new file with mode: 0644]
typo3/sysext/backend/Resources/Private/TypeScript/Event/ClientRequest.ts [new file with mode: 0644]
typo3/sysext/backend/Resources/Private/TypeScript/Event/Consumable.ts [new file with mode: 0644]
typo3/sysext/backend/Resources/Private/TypeScript/Event/ConsumerScope.ts [new file with mode: 0644]
typo3/sysext/backend/Resources/Private/TypeScript/Event/InteractionRequest.ts [new file with mode: 0644]
typo3/sysext/backend/Resources/Private/TypeScript/Event/InteractionRequestAssignment.ts [new file with mode: 0644]
typo3/sysext/backend/Resources/Private/TypeScript/Event/InteractionRequestMap.ts [new file with mode: 0644]
typo3/sysext/backend/Resources/Private/TypeScript/Event/TriggerRequest.ts [new file with mode: 0644]
typo3/sysext/backend/Resources/Public/JavaScript/BackendException.js [new file with mode: 0644]
typo3/sysext/backend/Resources/Public/JavaScript/ContextMenuActions.js
typo3/sysext/backend/Resources/Public/JavaScript/Event/ClientRequest.js [new file with mode: 0644]
typo3/sysext/backend/Resources/Public/JavaScript/Event/Consumable.js [new file with mode: 0644]
typo3/sysext/backend/Resources/Public/JavaScript/Event/ConsumerScope.js [new file with mode: 0644]
typo3/sysext/backend/Resources/Public/JavaScript/Event/InteractionRequest.js [new file with mode: 0644]
typo3/sysext/backend/Resources/Public/JavaScript/Event/InteractionRequestAssignment.js [new file with mode: 0644]
typo3/sysext/backend/Resources/Public/JavaScript/Event/InteractionRequestMap.js [new file with mode: 0644]
typo3/sysext/backend/Resources/Public/JavaScript/Event/TriggerRequest.js [new file with mode: 0644]
typo3/sysext/backend/Resources/Public/JavaScript/FormEngine.js
typo3/sysext/backend/Resources/Public/JavaScript/ModuleMenu.js
typo3/sysext/backend/Resources/Public/JavaScript/Viewport.js
typo3/sysext/backend/Resources/Public/JavaScript/extjs/components/pagetree/javascript/actions.js
typo3/sysext/core/Documentation/Changelog/master/Feature-77268-IntroduceJavaScriptTriggerRequestAPI.rst [new file with mode: 0644]
typo3/sysext/filelist/Resources/Public/JavaScript/ContextMenuActions.js