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