FIX: Enter to change username was broken

This commit is contained in:
Robin Ward 2015-04-28 11:39:10 -04:00
parent fe49141509
commit 1e36400021

View file

@ -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;