0afd90dbdfb628d35df801d00ceed5fe688c1bf8
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Documentation / Changelog / 8.0 / Feature-73720-TriggerEventAfterModalWindowDismissed.rst
1
2 .. include:: ../../Includes.txt
3
4 ============================================================
5 Feature: #73720 - Trigger event after modal window dismissed
6 ============================================================
7
8 See :issue:`73720`
9
10 Description
11 ===========
12
13 A new event `modal-destroyed` has been added that will be triggered after a modal window closed.
14
15
16 Impact
17 ======
18
19 Bind to the event `modal-destroyed` to achieve custom actions after the modal
20 has been dismissed.
21
22 Example code:
23
24 .. code-block:: javascript
25
26         var $modal = Modal.confirm(); // stub code
27         $modal.on('modal-destroyed', function() {
28                 // Reset the selection
29                 $someCombobox.val('');
30         });