FIX: Login modal on mobile does not submit on enter.

This commit is contained in:
Guo Xiang Tan 2017-01-09 13:20:53 +08:00
parent e89fc5f483
commit e721e31699
1 changed files with 56 additions and 51 deletions

View File

@ -1,4 +1,5 @@
{{#d-modal-body title="login.title" class="login-modal"}} {{#login-modal screenX=lastX screenY=lastY loginName=loginName loginPassword=loginPassword action="login"}}
{{#d-modal-body title="login.title" class="login-modal"}}
{{login-buttons action="externalLogin"}} {{login-buttons action="externalLogin"}}
{{#if canLoginLocal}} {{#if canLoginLocal}}
<form id='login-form' method='post'> <form id='login-form' method='post'>
@ -28,16 +29,19 @@
</tr> </tr>
</table> </table>
</div> </div>
</form> </form>
{{/if}} {{/if}}
{{authMessage}} {{authMessage}}
<div id='login-alert' class={{alertClass}}>{{alert}}</div> <div id='login-alert' class={{alertClass}}>{{alert}}</div>
{{/d-modal-body}} {{/d-modal-body}}
<div class="modal-footer"> <div class="modal-footer">
{{#if authenticate}} {{#if authenticate}}
{{i18n 'login.authenticating'}} {{i18n 'login.authenticating'}}
{{/if}} {{/if}}
{{#if canLoginLocal}} {{#if canLoginLocal}}
<button class='btn btn-large btn-primary' <button class='btn btn-large btn-primary'
disabled={{loginDisabled}} disabled={{loginDisabled}}
@ -51,4 +55,5 @@
</button> </button>
{{/if}} {{/if}}
{{/if}} {{/if}}
</div> </div>
{{/login-modal}}