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
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
toggleButtons: function(toggle) {\r
this.$('.btn, button').toggleClass('disabled', !toggle);\r
+ this.$('textarea').attr('disabled', !toggle);\r
this.actionsDisabled = !toggle;\r
}\r
});\r
create: function() {\r
return new DialogView();\r
}\r
- }\r
+ };\r
\r
});
\ No newline at end of file