X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/e8c45077de2d4ada496850fd77fa5035f07f8a4d..969f365b3ee6d3cb54f98b23e1ebb97df9f801dd:/modules/documentHistory/restoreDialog.js diff --git a/modules/documentHistory/restoreDialog.js b/modules/documentHistory/restoreDialog.js index 543a546..97ea2af 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(); @@ -29,7 +29,7 @@ define([ data: {description: view.$el.find('textarea').val()}, success: function() { view.actionsDisabled = false; view.close(); }, error: function() { view.actionsDisabled = false; view.close(); }, - }) + }); }, close: function(e) { if(e) @@ -50,6 +50,6 @@ define([ create: function() { return new DialogView(); } - } + }; }); \ No newline at end of file