mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Enter to change username was broken
This commit is contained in:
parent
fe49141509
commit
1e36400021
@ -11,7 +11,7 @@ export default Ember.View.extend({
|
|||||||
keyDown: function(e) {
|
keyDown: function(e) {
|
||||||
if (e.keyCode === 13) {
|
if (e.keyCode === 13) {
|
||||||
if (!this.get('controller').get('saveDisabled')) {
|
if (!this.get('controller').get('saveDisabled')) {
|
||||||
return this.get('controller').changeUsername();
|
return this.get('controller').send('changeUsername');
|
||||||
} else {
|
} else {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user