diff options
author | ArthurHoaro <arthur@hoa.ro> | 2017-03-12 12:45:32 +0100 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2017-03-12 12:45:32 +0100 |
commit | b9b41d25e319f44f9fb8259a0237a8ee81ad394b (patch) | |
tree | 2926d2d9c5fdf0310372efa02c11efcf0bd0d428 /tpl/default/loginform.html | |
parent | 196808e14f4df44faea4d010c062c09f36095d9b (diff) | |
download | Shaarli-b9b41d25e319f44f9fb8259a0237a8ee81ad394b.tar.gz Shaarli-b9b41d25e319f44f9fb8259a0237a8ee81ad394b.tar.zst Shaarli-b9b41d25e319f44f9fb8259a0237a8ee81ad394b.zip |
Remove inline JS and add LibreJS headers in JS files
Fixes #33 (wow!)
Relates to #395
Diffstat (limited to 'tpl/default/loginform.html')
-rw-r--r-- | tpl/default/loginform.html | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/tpl/default/loginform.html b/tpl/default/loginform.html index 2ad3fe9c..eb6d8378 100644 --- a/tpl/default/loginform.html +++ b/tpl/default/loginform.html | |||
@@ -26,7 +26,7 @@ | |||
26 | {if="!empty($username)"}value="{$username}"{/if} class="autofocus" tabindex="20"> | 26 | {if="!empty($username)"}value="{$username}"{/if} class="autofocus" tabindex="20"> |
27 | </div> | 27 | </div> |
28 | <div> | 28 | <div> |
29 | <input type="password" name="password" placeholder="{'Password'|t}" tabindex="21"> | 29 | <input type="password" name="password" placeholder="{'Password'|t}" class="autofocus" tabindex="21"> |
30 | </div> | 30 | </div> |
31 | <div class="remember-me"> | 31 | <div class="remember-me"> |
32 | <input type="checkbox" name="longlastingsession" id="longlastingsessionform" | 32 | <input type="checkbox" name="longlastingsession" id="longlastingsessionform" |
@@ -45,15 +45,6 @@ | |||
45 | {/if} | 45 | {/if} |
46 | 46 | ||
47 | {include="page.footer"} | 47 | {include="page.footer"} |
48 | <script> | ||
49 | {if="ban_canLogin($conf) && ! empty($username)"} | ||
50 | // Focus password on load if the username is set. | ||
51 | var passwords = document.getElementsByName('password'); | ||
52 | if (passwords.length == 2) { | ||
53 | passwords[1].focus(); | ||
54 | } | ||
55 | {/if} | ||
56 | </script> | ||
57 | </body> | 48 | </body> |
58 | </html> | 49 | </html> |
59 | 50 | ||