From: Aleksander Ɓukasz Date: Mon, 24 Mar 2014 09:21:07 +0000 (+0100) Subject: editor: dialog forms - better initial focus X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/855e70051b75a5c3daf479569736c9643f63ac3a?ds=inline editor: dialog forms - better initial focus --- 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();