Convert view/ParameterContentTypeView.coffee

This commit is contained in:
Mohsen Azimi
2015-03-12 11:53:09 -07:00
parent e3a502c3df
commit 140dc776c9
2 changed files with 14 additions and 14 deletions

View File

@@ -1,14 +0,0 @@
class ParameterContentTypeView extends Backbone.View
initialize: ->
render: ->
template = @template()
$(@el).html(template(@model))
$('label[for=parameterContentType]', $(@el)).text('Parameter content type:')
@
template: ->
Handlebars.templates.parameter_content_type

View File

@@ -0,0 +1,14 @@
'use strict';
var ParameterContentTypeView = Backbone.View.extend({
initialize: function () {},
render: function(){
$(this.el).html(Handlebars.templates.parameter_content_type(this.model));
$('label[for=parameterContentType]', $(this.el)).text('Parameter content type:');
return this;
}
});