From 855e70051b75a5c3daf479569736c9643f63ac3a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Mon, 24 Mar 2014 10:21:07 +0100 Subject: [PATCH] editor: dialog forms - better initial focus --- src/editor/views/dialog/dialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor/views/dialog/dialog.js b/src/editor/views/dialog/dialog.js index 0579464..04d8f74 100644 --- a/src/editor/views/dialog/dialog.js +++ b/src/editor/views/dialog/dialog.js @@ -48,7 +48,7 @@ define(function(require) { this.$el.modal({backdrop: 'static'}); this.$el.modal('show'); - this.$('textarea').focus(); + this.$('textarea, input').first().focus(); }, onExecute: function(e) { e.preventDefault(); -- 2.20.1