mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
FIX: Enter to change username was broken
This commit is contained in:
parent
fe49141509
commit
1e36400021
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ export default Ember.View.extend({
|
|||
keyDown: function(e) {
|
||||
if (e.keyCode === 13) {
|
||||
if (!this.get('controller').get('saveDisabled')) {
|
||||
return this.get('controller').changeUsername();
|
||||
return this.get('controller').send('changeUsername');
|
||||
} else {
|
||||
e.preventDefault();
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue