[BUGFIX] Access trigger element in modal correctly 07/56007/2
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Mon, 5 Mar 2018 08:20:02 +0000 (09:20 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Mon, 5 Mar 2018 10:59:26 +0000 (11:59 +0100)
commitb3ef7c69c17e304951f0f8fe5921022ef56f8373
tree6a4460a5445ac1264b1e395356e69863b66717bb
parent780c30294b8604ed531adc0964962716fd454c46
[BUGFIX] Access trigger element in modal correctly

$(this) does not work in TypeScript, as this is bound to the class or the
method, but never to the element. Thus, the target element is fetched
from the event.

Resolves: #84138
Releases: master
Change-Id: I05545d19f5cb10adc3678fa81d81e3b181047bc4
Reviewed-on: https://review.typo3.org/56007
Reviewed-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Tested-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Tobi Kretschmann <tobi@tobishome.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/backend/Resources/Private/TypeScript/Modal.ts
typo3/sysext/backend/Resources/Public/JavaScript/Modal.js