From dea52907bdbed92c95dec7e7e832ac95d9f9d388 Mon Sep 17 00:00:00 2001 From: Maxime Quandalle Date: Fri, 5 Jun 2015 21:37:13 +0200 Subject: Start designing the card details pane Implement a dynamic overflow to focus sight on the pane. --- client/components/forms/inlinedform.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client/components/forms/inlinedform.js') diff --git a/client/components/forms/inlinedform.js b/client/components/forms/inlinedform.js index b8442a28..e4331892 100644 --- a/client/components/forms/inlinedform.js +++ b/client/components/forms/inlinedform.js @@ -76,7 +76,7 @@ BlazeComponent.extendComponent({ // Pressing Ctrl+Enter should submit the form 'keydown form textarea': function(evt) { if (evt.keyCode === 13 && (evt.metaKey || evt.ctrlKey)) { - $(evt.currentTarget).parents('form:first').submit(); + this.find('button[type=submit]').click(); } }, -- cgit v1.2.3-1-g7c22