From 8de172c0da8cb997c8c4a193b98b88ee5df21aea Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 12 May 2014 09:40:22 +1000 Subject: [PATCH] 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 --- .../javascripts/discourse/views/modal/invite_view.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/app/assets/javascripts/discourse/views/modal/invite_view.js b/app/assets/javascripts/discourse/views/modal/invite_view.js index 4783a5be296..8f2088fa5f7 100644 --- a/app/assets/javascripts/discourse/views/modal/invite_view.js +++ b/app/assets/javascripts/discourse/views/modal/invite_view.js @@ -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') });