[FOLLOWUP][TASK] Update to jQuery 3.1.1 73/50273/4
authorFrank Naegler <frank.naegler@typo3.org>
Wed, 19 Oct 2016 10:10:54 +0000 (12:10 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Wed, 19 Oct 2016 11:40:43 +0000 (13:40 +0200)
This followup fixes an error in jsfunc.inline.js related to the jQuery
update.

Resolves: #77249
Releases: master
Change-Id: Ia2e1394b45f73285abb352ce4e965d78b6a5f3a2
Reviewed-on: https://review.typo3.org/50273
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/backend/Resources/Public/JavaScript/jsfunc.inline.js

index 7d81ced..71b9f25 100644 (file)
@@ -46,7 +46,7 @@ var inline = {
                        return;
                }
 
-               var $recordHeader = TYPO3.jQuery(this);
+               var $recordHeader = $triggerElement.closest('.panel-heading');
                inline.expandCollapseRecord(
                        $recordHeader.attr('id').replace(/_header$/, ''),
                        $recordHeader.attr('data-expandSingle'),
@@ -1323,8 +1323,8 @@ var inline = {
 /*]]>*/
 (function ($) {
        $(function () {
-               $(document).on('click', '[data-toggle="formengine-inline"]', function() {
-                       inline.toggleEvent();
+               $(document).on('click', '[data-toggle="formengine-inline"]', function(event) {
+                       inline.toggleEvent(event);
                });
        });
 })(TYPO3.jQuery);