[TASK] Focus tab on "Login expiring" notification 06/39606/2
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Mon, 18 May 2015 21:15:24 +0000 (23:15 +0200)
committerFrank Nägler <typo3@naegler.net>
Mon, 18 May 2015 21:44:02 +0000 (23:44 +0200)
Focus the tab that renders the "Login expiring" notification on click.

Resolves: #67022
Releases: master
Change-Id: I740d1ddaf07f58124045929f69b8b2642bc24828
Reviewed-on: http://review.typo3.org/39606
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Stephan Großberndt <stephan@grossberndt.de>
Reviewed-by: Frank Nägler <typo3@naegler.net>
Tested-by: Frank Nägler <typo3@naegler.net>
typo3/sysext/backend/Resources/Public/JavaScript/LoginRefresh.js

index a2f2f4d..fc484b4 100644 (file)
@@ -136,6 +136,9 @@ define('TYPO3/CMS/Backend/LoginRefresh', ['jquery', 'bootstrap'], function($) {
                                body: TYPO3.LLL.core.login_about_to_expire,
                                icon: '/typo3/sysext/backend/Resources/Public/Images/Logo.png'
                        });
+                       LoginRefresh.webNotification.onclick = function() {
+                               window.focus();
+                       };
                }
        };