canvas manager wip: experiments
[fnpeditor.git] / modules / data / saveDialog.js
index a772ba6..2108276 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
@@ -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