Fixed bug #12735: BE-Login: show login process
authorSteffen Kamper <info@sk-typo3.de>
Tue, 24 Nov 2009 16:12:06 +0000 (16:12 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Tue, 24 Nov 2009 16:12:06 +0000 (16:12 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@6514 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/index.php
typo3/sysext/lang/locallang_login.xml
typo3/sysext/t3skin/icons/login-submit-progress.gif [new file with mode: 0644]
typo3/sysext/t3skin/resources/login.js
typo3/sysext/t3skin/stylesheets/typo3-index-php.css
typo3/sysext/t3skin/templates/login.html

index 9544391..ef0d87d 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -16,6 +16,7 @@
 
 2009-11-24  Steffen Kamper  <info@sk-typo3.de>
 
+       * Fixed bug #12735: BE-Login: show login process
        * Fixed bug #12719: Bugfix - tcemain copy/move/deleteL10nOverlayRecords is not fully versioning-aware (thanks to Tolleiv Nietsch)
        * Fixed bug #12710: "Paste after" function destroys l10n-overlay relations (thanks to Tolleiv Nietsch)
        * Fixed bug #12700: pageInfo shows wrong info on root page
index 7b27e03..e050cc4 100644 (file)
@@ -335,6 +335,7 @@ class SC_index {
                        'LABEL_SWITCHOPENID' => $GLOBALS['LANG']->getLL('labels.switchToOpenId', true),
                        'LABEL_SWITCHDEFAULT' => $GLOBALS['LANG']->getLL('labels.switchToDefault', true),
                        'CLEAR'            => $GLOBALS['LANG']->getLL('clear', true),
+                       'LOGIN_PROCESS'    => $GLOBALS['LANG']->getLL('login_process', true),
                        'SITELINK'         => '<a href="/">###SITENAME###</a>',
 
                                // global variables will now be replaced (at last)
index 143be6b..07dd903 100644 (file)
@@ -25,6 +25,7 @@
                        <label index="info.reset">Reset this form</label>
                        <label index="info.cookies_and_js">(Note: Cookies and JavaScript must be enabled!)</label>
                        <label index="clear">Clear this field!</label>
+                       <label index="login_process">Verifying Login Data ...</label>
                        <label index="newsheadline">Important Messages:</label>
                        <label index="error.login">Your login attempt did not succeed. Make sure to spell your username and password correctly, including upper/lowercase characters.</label>
                        <label index="error.login.title">Your login attempt did not succeed</label>
diff --git a/typo3/sysext/t3skin/icons/login-submit-progress.gif b/typo3/sysext/t3skin/icons/login-submit-progress.gif
new file mode 100644 (file)
index 0000000..1022539
Binary files /dev/null and b/typo3/sysext/t3skin/icons/login-submit-progress.gif differ
index b73f6ec..1c12087 100644 (file)
@@ -16,6 +16,11 @@ TYPO3BackendLogin = {
                        'click',
                        TYPO3BackendLogin.switchToDefault
                );
+               Event.observe(
+                       $('t3-login-submit'),
+                       'click',
+                       TYPO3BackendLogin.showLoginProcess
+               );
 
                $A(['t3-username', 't3-password']).each(function(value) {
                        Event.observe(
@@ -93,6 +98,16 @@ TYPO3BackendLogin = {
                if ($('t3-login-interface-section')) {
                        $('t3-login-interface-section').show();
                }
+       },
+       
+       showLoginProcess: function() {
+               if ($('t3-login-error')) {
+                       $('t3-login-error').hide();
+               }
+
+               $('t3-login-form-fields').hide();
+               $('t3-nocookies-error').hide();
+               $('t3-login-process').show();
        }
 };
 
index 0377cd4..8b6ecff 100644 (file)
@@ -44,6 +44,16 @@ body#typo3-index-php .t3-headline h2 {
        line-height: 24px;
 }
 
+body#typo3-index-php #t3-login-process h2 {
+       background: url('../icons/login-submit-progress.gif') no-repeat 10px center;
+       font-size: 11px !important;
+       vertical-align: middle;
+       line-height: 32px;
+       color: #7F8083;
+       padding: 0 0 0 50px;
+       margin: 20px 0 20px 115px;
+}
+
 body#typo3-index-php .t3-headline .t3-login-news-headline {
        background: url('../icons/login-icon-news.gif') no-repeat 10px center;
        background-color: transparent;
index 302161c..05c750e 100644 (file)
@@ -17,6 +17,9 @@
                                <div id="t3-nocookies-error" class="t3-login-alert t3-login-alert-warning" style="display:none">\r
                                        <h2>###ERROR_COOKIES###</h2>\r
                                </div>\r
+                               <div id="t3-login-process" style="display: none">\r
+                                       <h2>###LOGIN_PROCESS###</h2>\r
+                               </div>\r
                                ###FORM###\r
                                <div class="t3-login-bottomBorder"></div>\r
                                <script type="text/javascript">\r
                ###VALUE_INTERFACE###\r
        </div>\r
        <!-- ###INTERFACE_SELECTOR### end -->\r
-       <input type="submit" name="commandLI" value="###VALUE_SUBMIT###" class="t3-login-submit" tabindex="4" /> \r
+       <input type="submit" name="commandLI" id="t3-login-submit" value="###VALUE_SUBMIT###" class="t3-login-submit" tabindex="4" />  \r
        <div class="t3-login-form-footer">\r
                <div id="t3-login-form-footer-default">\r
                        <a id="t3-login-switchToOpenId" class="switchToOpenId">###LABEL_SWITCHOPENID###</a>\r