RecordList: Delete record: referenced records don't have a fancy delete fade out animation
Scenario: I delete a record in recordlist, where also child elements are deleted. After agreeing the modal box, only the deleted record is removed (animation) from the table. Referenced records (of other tables) (in my example on the same pid) are correctly removed, but an editor have to reload the frame/module. Something can lead to confusion for an TYPO3 backend editor.
You can test this with EXT:powermail > v2: Create a form with pages and fields. Than delete the form in recordlist.
As I actually don't know how complex the deletion via ajax is: what about forcing a reload, when there is a case like this (referenced items or child items?!)
#3 Updated by Oliver Hader about 2 years ago
- Status changed from New to Accepted
The drawback is, that the AJAX invocation results in an implicit DOM update for the clicked element. Reloading the whole document would mitigate the desired impact of using an AJAX call at all.Two possibilities:
- model based client approach (MVVM style with data-binding)
- modify AJAX response to return imperatives for a set of CSS selectors (e.g.
"remove": [".t3js-entity[...]", ".t3js-entity[...]"])