X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/189a6efb18ccc8275be3c2ff7ce40f0330465142..b2e6eff88e29de706181587f619e0e4b125a5c56:/src/editor/views/dialog/dialog.js?ds=sidebyside diff --git a/src/editor/views/dialog/dialog.js b/src/editor/views/dialog/dialog.js index 0579464..bad349d 100644 --- a/src/editor/views/dialog/dialog.js +++ b/src/editor/views/dialog/dialog.js @@ -1,6 +1,5 @@ define(function(require) { - /* globals gettext */ 'use strict'; var _ = require('libs/underscore'), @@ -27,8 +26,8 @@ define(function(require) { }, show: function() { this.setElement(this.template(_.extend({ - executeButtonText: gettext('Submit'), - cancelButtonText: gettext('Cancel') + executeButtonText: null, + cancelButtonText: null }, this.options))); var body = this.$('.modal-body'); @@ -48,7 +47,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();