Convert view/ParameterContentTypeView.coffee
This commit is contained in:
@@ -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
|
|
||||||
|
|
||||||
14
src/main/coffeescript/view/ParameterContentTypeView.js
Normal file
14
src/main/coffeescript/view/ParameterContentTypeView.js
Normal 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;
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user