Missing semicolons
[fnpeditor.git] / modules / data / saveDialog.js
index a772ba6..0bdb718 100644 (file)
@@ -20,6 +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
+            this.$('textarea').focus();\r
 \r
         },\r
         onSave: function(e) {\r
 \r
         },\r
         onSave: function(e) {\r
@@ -29,7 +30,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
@@ -41,6 +42,7 @@ define([
         },\r
         toggleButtons: function(toggle) {\r
             this.$('.btn, button').toggleClass('disabled', !toggle);\r
         },\r
         toggleButtons: function(toggle) {\r
             this.$('.btn, button').toggleClass('disabled', !toggle);\r
+            this.$('textarea').attr('disabled', !toggle);\r
             this.actionsDisabled = !toggle;\r
         }\r
     });\r
             this.actionsDisabled = !toggle;\r
         }\r
     });\r
@@ -49,6 +51,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