[BUGFIX] Trigger login refresh submit manually 91/48691/2
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Mon, 20 Jun 2016 16:30:57 +0000 (18:30 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Wed, 29 Jun 2016 18:23:36 +0000 (20:23 +0200)
Some iterations of Internet Explorer that are supported by TYPO3 do not
support the necessary `form` attribute, thus the refresh login dialog is
broken on such browsers. The form is now submitted by JavaScript to
circumvent this problem.

Resolves: #76707
Releases: master, 7.6
Change-Id: Ia6590ea441d91b045c5b733b4c44627137d7afe0
Reviewed-on: https://review.typo3.org/48691
Reviewed-by: Susanne Moog <typo3@susannemoog.de>
Tested-by: Susanne Moog <typo3@susannemoog.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/backend/Resources/Public/JavaScript/LoginRefresh.js

index 530c9b2..c298de1 100644 (file)
@@ -217,7 +217,11 @@ define(['jquery', 'TYPO3/CMS/Backend/Notification', 'bootstrap'], function($, Ty
                );
                LoginRefresh.$loginForm.find('.modal-footer').append(
                        $('<a />', {href: LoginRefresh.logoutUrl, class: 'btn btn-default'}).text(TYPO3.LLL.core.refresh_exit_button),
                );
                LoginRefresh.$loginForm.find('.modal-footer').append(
                        $('<a />', {href: LoginRefresh.logoutUrl, class: 'btn btn-default'}).text(TYPO3.LLL.core.refresh_exit_button),
-                       $('<button />', {type: 'submit', form: 'beLoginRefresh', class: 'btn btn-primary', 'data-action': 'refreshSession'}).text(TYPO3.LLL.core.refresh_login_button)
+                       $('<button />', {type: 'button', class: 'btn btn-primary', 'data-action': 'refreshSession'})
+                               .text(TYPO3.LLL.core.refresh_login_button)
+                               .on('click', function(e) {
+                                       LoginRefresh.$loginForm.find('form').submit();
+                               })
                );
 
                LoginRefresh.registerDefaultModalEvents(LoginRefresh.$loginForm).on('submit', LoginRefresh.submitForm);
                );
 
                LoginRefresh.registerDefaultModalEvents(LoginRefresh.$loginForm).on('submit', LoginRefresh.submitForm);