OSDN Git Service

add load icon
[pettanr/pettanr.git] / app / assets / javascripts / views / licenses / summary.js.coffee
1 class Pettanr.Views.License.Summary extends Pettanr.Views.Common.Summary\r
2   \r
3   initialize: (options) ->\r
4     @item = options.item\r
5     @load()\r
6   \r
7   load: () ->\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       @trigger('ready')\r
16   \r
17   render: () ->\r
18     this.$el.html('')\r
19     this.$el.html(@img.render().el)\r
20     this\r
21   \r