From: Aleksander Ɓukasz Date: Tue, 18 Jun 2013 12:00:13 +0000 (+0200) Subject: Initial focus in dialogs X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/dcbcc948a5d3044fee2839dbe508ab1eb4ba54dc Initial focus in dialogs --- diff --git a/modules/data/saveDialog.js b/modules/data/saveDialog.js index aa6b285..2108276 100644 --- a/modules/data/saveDialog.js +++ b/modules/data/saveDialog.js @@ -20,6 +20,7 @@ define([ this.setElement(this.template()); this.$el.modal({backdrop: 'static'}); this.$el.modal('show'); + this.$('textarea').focus(); }, onSave: function(e) { diff --git a/modules/documentHistory/restoreDialog.js b/modules/documentHistory/restoreDialog.js index 543a546..0110240 100644 --- a/modules/documentHistory/restoreDialog.js +++ b/modules/documentHistory/restoreDialog.js @@ -20,7 +20,7 @@ define([ this.setElement(this.template()); this.$el.modal({backdrop: 'static'}); this.$el.modal('show'); - + this.$('textarea').focus(); }, onSave: function(e) { e.preventDefault();