Convert view/ContentTypeView.coffee

This commit is contained in:
Mohsen Azimi
2015-03-12 11:11:20 -07:00
parent 734ad71250
commit 3944828c60
2 changed files with 13 additions and 14 deletions

View File

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

View File

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