Convert view/ResponseContentTypeView.coffee

This commit is contained in:
Mohsen Azimi
2015-03-12 11:38:08 -07:00
parent dc9ce7d798
commit dc4e595eed
2 changed files with 13 additions and 14 deletions

View File

@@ -1,14 +0,0 @@
class ResponseContentTypeView extends Backbone.View
initialize: ->
render: ->
template = @template()
$(@el).html(template(@model))
$('label[for=responseContentType]', $(@el)).text('Response Content Type')
@
template: ->
Handlebars.templates.response_content_type

View File

@@ -0,0 +1,13 @@
'use strict';
var ResponseContentTypeView = Backbone.View.extend({
initialize: function(){},
render: function(){
$(this.el).html(Handlebars.templates.response_content_type(this.model));
$('label[for=responseContentType]', $(this.el)).text('Response Content Type');
return this;
}
});