Follow-up to bugfix #12735: BE-Login: show login process (Safari fixes)
authorSteffen Kamper <info@sk-typo3.de>
Wed, 25 Nov 2009 10:50:07 +0000 (10:50 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Wed, 25 Nov 2009 10:50:07 +0000 (10:50 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@6523 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/t3skin/resources/login.js

index 644cacb..84e762c 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-11-25  Steffen Kamper  <info@sk-typo3.de>
+
+       * Follow-up to bugfix #12735: BE-Login: show login process (Safari fixes)
+
 2009-11-24  Francois Suter  <francois@typo3.org>
 
        * Fixed bug #12547: Removed wrong default binary search paths for Windows
index 1c12087..9b3348e 100644 (file)
@@ -1,10 +1,18 @@
+var isWebKit = document.childNodes && !document.all && !navigator.taintEnabled;
+
 TYPO3BackendLogin = {
        start: function() {
+               TYPO3BackendLogin.preloadImages();
                TYPO3BackendLogin.registerEventListeners();
                TYPO3BackendLogin.setVisibilityOfClearIcon($('t3-username'), $('t3-username-clearIcon'));
                TYPO3BackendLogin.setVisibilityOfClearIcon($('t3-password'), $('t3-password-clearIcon'));
        },
 
+       preloadImages: function() {
+               var image = new Image();
+               image.src = 'sysext/t3skin/icons/login-submit-progress.gif';
+       },
+
        registerEventListeners: function() {
                Event.observe(
                                $('t3-login-switchToOpenId'),
@@ -33,11 +41,13 @@ TYPO3BackendLogin = {
                                        ['focus', 'blur', 'keypress'],
                                        function() { TYPO3BackendLogin.setVisibilityOfClearIcon($(value), $(value + '-clearIcon')); }
                        );
-                       Event.observe(
-                               $(value),
-                               'keypress',
-                               function(event) { TYPO3BackendLogin.showCapsLockWarning($(value + '-alert-capslock'), event); }
-                       );
+                       if (!isWebKit) {
+                               Event.observe(
+                                       $(value),
+                                       'keypress',
+                                       function(event) { TYPO3BackendLogin.showCapsLockWarning($(value + '-alert-capslock'), event); }
+                               );
+                       }
                })
        },