mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-28 06:54:06 -04:00
Make enter key work to submit the signup form
This commit is contained in:
parent
3c322e6d3d
commit
16bc215c68
2 changed files with 2 additions and 1 deletions
app/assets/javascripts/discourse
|
@ -57,6 +57,7 @@
|
||||||
{{#if loadingAbove}}
|
{{#if loadingAbove}}
|
||||||
<div class='spinner'>{{i18n loading}}</div>
|
<div class='spinner'>{{i18n loading}}</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{collection itemViewClass="Discourse.PostView" contentBinding="content.posts" topicViewBinding="view"}}
|
{{collection itemViewClass="Discourse.PostView" contentBinding="content.posts" topicViewBinding="view"}}
|
||||||
|
|
||||||
{{#if loadingBelow}}
|
{{#if loadingBelow}}
|
||||||
|
|
|
@ -280,7 +280,7 @@ Discourse.CreateAccountView = Discourse.ModalBodyView.extend({
|
||||||
// but only when the submit button is enabled
|
// but only when the submit button is enabled
|
||||||
var _this = this;
|
var _this = this;
|
||||||
return Em.run.next(function() {
|
return Em.run.next(function() {
|
||||||
return $("input[type='text']").keydown(function(e) {
|
return $("input[type='text'], input[type='password']").keydown(function(e) {
|
||||||
if (_this.get('submitDisabled') === false && e.keyCode === 13) {
|
if (_this.get('submitDisabled') === false && e.keyCode === 13) {
|
||||||
return _this.createAccount();
|
return _this.createAccount();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue