TYPO3 v15 dev-main snapshot ()
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
|
||||
.. include:: /Includes.rst.txt
|
||||
|
||||
.. _feature-73720:
|
||||
|
||||
============================================================
|
||||
Feature: #73720 - Trigger event after modal window dismissed
|
||||
============================================================
|
||||
|
||||
See :issue:`73720`
|
||||
|
||||
Description
|
||||
===========
|
||||
|
||||
A new event `modal-destroyed` has been added that will be triggered after a modal window closed.
|
||||
|
||||
|
||||
Impact
|
||||
======
|
||||
|
||||
Bind to the event `modal-destroyed` to achieve custom actions after the modal
|
||||
has been dismissed.
|
||||
|
||||
Example code:
|
||||
|
||||
.. code-block:: javascript
|
||||
|
||||
var $modal = Modal.confirm(); // stub code
|
||||
$modal.on('modal-destroyed', function() {
|
||||
// Reset the selection
|
||||
$someCombobox.val('');
|
||||
});
|
||||
|
||||
.. index:: Backend, JavaScript
|
||||
Reference in New Issue
Block a user