From 3944828c60934f0332fd47242987fac9f0cd02e6 Mon Sep 17 00:00:00 2001 From: Mohsen Azimi Date: Thu, 12 Mar 2015 11:11:20 -0700 Subject: [PATCH] Convert view/ContentTypeView.coffee --- src/main/coffeescript/view/ContentTypeView.coffee | 14 -------------- src/main/coffeescript/view/ContentTypeView.js | 13 +++++++++++++ 2 files changed, 13 insertions(+), 14 deletions(-) delete mode 100644 src/main/coffeescript/view/ContentTypeView.coffee create mode 100644 src/main/coffeescript/view/ContentTypeView.js diff --git a/src/main/coffeescript/view/ContentTypeView.coffee b/src/main/coffeescript/view/ContentTypeView.coffee deleted file mode 100644 index 1c7a6515..00000000 --- a/src/main/coffeescript/view/ContentTypeView.coffee +++ /dev/null @@ -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 - diff --git a/src/main/coffeescript/view/ContentTypeView.js b/src/main/coffeescript/view/ContentTypeView.js new file mode 100644 index 00000000..b165d80a --- /dev/null +++ b/src/main/coffeescript/view/ContentTypeView.js @@ -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; + } +}); \ No newline at end of file