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
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
create: function() {\r
return new DialogView();\r
}\r
- }\r
+ };\r
\r
});
\ No newline at end of file