|
6 | 6 | <input id="email" name="email" type="text" class="input-block" tabindex="1" autocomplete="off"> |
7 | 7 | <label for="password">Password</label> |
8 | 8 | <div class="forgot-password-link"> |
9 | | - <a href="login-resetPassword.view?">Forgot password</a> |
| 9 | + <a href="login-resetPassword.view">Forgot password</a> |
10 | 10 | </div> |
11 | 11 | <input id="password" name="password" type="password" class="input-block" tabindex="2" autocomplete="off"> |
12 | 12 | <input tabindex="3" type="checkbox" name="remember" id="remember" checked> Remember my email address |
13 | 13 | <div class="termsOfUseSection" hidden> |
14 | 14 | <div class="auth-header auth-item">Terms of Use</div> |
15 | 15 | <div class="toucontent auth-item termsOfUseContent"></div> |
16 | 16 | <div class="auth-item"> |
17 | | - <input type="checkbox" tabindex="4" name="approvedTermsOfUse" id="approvedTermsOfUse" class="auth-item" unchecked> |
| 17 | + <input type="checkbox" tabindex="4" name="approvedTermsOfUse" id="approvedTermsOfUse" class="auth-item"> |
18 | 18 | <label for="approvedTermsOfUse">I agree to these terms</label> |
19 | 19 | </div> |
20 | 20 | </div> |
|
23 | 23 | <input type="submit" tabindex="-1" class="loginSubmitButton"/> |
24 | 24 | <a tabindex="5" class="labkey-button primary signin-btn"><span>Sign In</span></a> |
25 | 25 | <span class="registrationSection" hidden> |
26 | | - <a class="labkey-button" id="registerButton" href="login-register.view?">Register</a> |
| 26 | + <a class="labkey-button" id="registerButton" href="login-register.view">Register</a> |
27 | 27 | </span> |
28 | 28 | </div> |
29 | 29 | <div class="signing-in-msg" hidden> |
|
36 | 36 | </div> |
37 | 37 | </form> |
38 | 38 |
|
39 | | -<script type="application/javascript" nonce="<%= scriptNonce %>"> |
40 | | - if (LABKEY.ActionURL.getParameter('returnUrl')) { |
41 | | - document.getElementById('registerButton').href += 'returnUrl=' + encodeURIComponent(LABKEY.ActionURL.getParameter('returnUrl')); |
42 | | - } |
| 39 | +<script type="text/javascript" nonce="<%=scriptNonce%>"> |
| 40 | + LABKEY.Utils.onReady(function() { |
| 41 | + if (LABKEY.ActionURL.getParameter('returnUrl')) { |
| 42 | + document.getElementById('registerButton').href += '?returnUrl=' + encodeURIComponent(LABKEY.ActionURL.getParameter('returnUrl')); |
| 43 | + } |
| 44 | + }); |
43 | 45 | </script> |
0 commit comments