OSDN Git Service

37c830156de9516a595aeb0c35d697db2f859b34
[pettanr/pettanr.git] / app / assets / javascripts / views / licenses / summary.js.coffee
1 class Pettanr.Views.License.Summary extends Backbone.View\r
2   \r
3   initialize: (options) ->\r
4     @item = options.item\r
5   \r
6   render: () ->\r
7     this.$el.html('')\r
8     @system_picture = @item.system_picture()\r
9     @system_picture.fetch({cache: true}).done =>\r
10       img = new Tag.Img({\r
11         attr: {\r
12           src: @system_picture.r_url()\r
13         }\r
14       })\r
15       this.$el.html(img.render().el)\r
16     this\r
17   \r