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:
parent
42bf010f8a
commit
8de172c0da
|
@ -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')
|
||||
});
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue