OSDN Git Service

fix: view system2
[pettanr/pettanr.git] / app / assets / javascripts / views / resource_pictures / summary.js.coffee
1 class Pettanr.Views.ResourcePicture.Summary extends Pettanr.View.Summary\r
2   \r
3   initialize: (options) ->\r
4     super(options)\r
5     @item = options.item\r
6     @item.get_parent('picture', this, {\r
7       success: (@picture) =>\r
8         @credit = new Pettanr.View.Credit(@picture, {})\r
9         @trigger('ready')\r
10     })\r
11   \r
12   render: () ->\r
13     this.$el.html('')\r
14     this.$el.append(@credit.render().el)\r
15     this\r
16   \r