Some code improvements suggested by linter
[fnpeditor.git] / modules / documentHistory / restoreDialog.js
index 543a546..97ea2af 100644 (file)
@@ -20,7 +20,7 @@ define([
             this.setElement(this.template());\r
             this.$el.modal({backdrop: 'static'});\r
             this.$el.modal('show');\r
             this.setElement(this.template());\r
             this.$el.modal({backdrop: 'static'});\r
             this.$el.modal('show');\r
-\r
+            this.$('textarea').focus();\r
         },\r
         onSave: function(e) {\r
             e.preventDefault();\r
         },\r
         onSave: function(e) {\r
             e.preventDefault();\r
@@ -29,7 +29,7 @@ define([
                 data: {description: view.$el.find('textarea').val()},\r
                 success: function() { view.actionsDisabled = false; view.close(); },\r
                 error: function() { view.actionsDisabled = false; view.close(); },\r
                 data: {description: view.$el.find('textarea').val()},\r
                 success: function() { view.actionsDisabled = false; view.close(); },\r
                 error: function() { view.actionsDisabled = false; view.close(); },\r
-            })\r
+            });\r
         },\r
         close: function(e) {\r
             if(e)\r
         },\r
         close: function(e) {\r
             if(e)\r
@@ -50,6 +50,6 @@ define([
         create: function() {\r
             return new DialogView();\r
         }\r
         create: function() {\r
             return new DialogView();\r
         }\r
-    }\r
+    };\r
 \r
 });
\ No newline at end of file
 \r
 });
\ No newline at end of file