OSDN Git Service

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