editor: dialog forms - better initial focus
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Mon, 24 Mar 2014 09:21:07 +0000 (10:21 +0100)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Mon, 24 Mar 2014 09:21:07 +0000 (10:21 +0100)
src/editor/views/dialog/dialog.js

index 0579464..04d8f74 100644 (file)
@@ -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();