OSDN Git Service

ea183f73c246de9130b116b4e83a785903bf8657
[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     super(options)\r
5     @item = options.item\r
6     @item.get_parent('system_picture', this, {\r
7       success: (@system_picture) =>\r
8         @img = new Tag.Img({\r
9           attr: {\r
10             src: @system_picture.r_url()\r
11           }\r
12         })\r
13         @trigger('ready')\r
14     })\r
15   \r
16   render: () ->\r
17     this.$el.html('')\r
18     this.$el.html(@img.render().el)\r
19     this\r
20   \r