Переглянути джерело

fixed rendering to support latest client for #932

bubble
Tony Tam 9 роки тому
джерело
коміт
1fbbabe974
1 змінених файлів з 4 додано та 3 видалено
  1. +4
    -3
      src/main/coffeescript/view/ResourceView.coffee

+ 4
- 3
src/main/coffeescript/view/ResourceView.coffee Переглянути файл

@@ -5,12 +5,13 @@ class ResourceView extends Backbone.View
@model.description = null

render: ->
$(@el).html(Handlebars.templates.resource(@model))

methods = {}

if @model.description
if @model.description?
@model.summary = @model.description

$(@el).html(Handlebars.templates.resource(@model))

# Render each operation
for operation in @model.operationsArray
counter = 0


Завантаження…
Відмінити
Зберегти