diff --git a/admin-dev/themes/default/template/controllers/login/content.tpl b/admin-dev/themes/default/template/controllers/login/content.tpl index bb1e65300..99a9f3ca6 100755 --- a/admin-dev/themes/default/template/controllers/login/content.tpl +++ b/admin-dev/themes/default/template/controllers/login/content.tpl @@ -55,9 +55,8 @@ {if !isset($wrong_folder_name) && !isset($wrong_install_name)}
-

{l s='Log in'}

- +
- +

- - @@ -105,13 +107,17 @@ -
-

{l s='Forgot your password?'}

-

{l s='In order to receive your access code by email, please enter the address you provided during the registration process.'} -

+ +
+

+ + {l s='Forgot your password?'} +

+

{l s='In order to receive your access code by email, please enter the address you provided during the registration process.'}

+
@@ -121,16 +127,17 @@ id="email_forgot" class="form-control" autofocus="autofocus" + tabindex="1" placeholder="test@example.com" />

- - @@ -159,7 +166,7 @@

- © 2005 - {$smarty.now|date_format:"%Y"} Copyright by PrestaShop. all rights reserved. + © PrestaShop 2005-{$smarty.now|date_format:"%Y"} - All rights reserved.

diff --git a/js/login.js b/js/login.js index 2c0764ec1..2dbd8c26d 100644 --- a/js/login.js +++ b/js/login.js @@ -52,8 +52,22 @@ $(document).ready(function() { e.preventDefault(); displayLogin(); }); + + //Tab-index loop + $('form').each(function(){ + var list = $(this).find('*[tabindex]').sort(function(a,b){ return a.tabIndex < b.tabIndex ? -1 : 1; }), + first = list.first(); + list.last().on('keydown', function(e){ + if( e.keyCode === 9 ) { + first.focus(); + return false; + } + }); + }); + }); + function displayForgotPassword() { $('#error').hide(); $('#login_form').fadeOut('fast', function () {