Removed invite on ENTER key

1. We can not use this feature as admins
2. It will be inconsistent if admins don't have it and others do
3. inviting people by mistake is no good

tab enter should do fine
This commit is contained in:
Sam 2014-05-12 09:40:22 +10:00
parent 42bf010f8a
commit 8de172c0da
1 changed files with 1 additions and 8 deletions

View File

@ -15,14 +15,7 @@ Discourse.InviteView = Discourse.ModalBodyView.extend({
} else {
return I18n.t('user.invited.create');
}
}.property('controller.invitingToTopic'),
keyUp: function(e) {
// Add the invitee if they hit enter
if (e.keyCode === 13) { this.get('controller').send('createInvite'); }
return false;
}
}.property('controller.invitingToTopic')
});