From dcbcc948a5d3044fee2839dbe508ab1eb4ba54dc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Tue, 18 Jun 2013 14:00:13 +0200 Subject: [PATCH 1/1] Initial focus in dialogs --- modules/data/saveDialog.js | 1 + modules/documentHistory/restoreDialog.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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(); -- 2.20.1