OSDN Git Service

fix:element remove func failed
[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     @item = options.item\r
6     @load()\r
7   \r
8   load: () ->\r
9     @item.get_parent('picture', this, {\r
10       success: (@picture) =>\r
11         @credit = new Pettanr.View.Credit(@picture, {})\r
12         @trigger('ready')\r
13     })\r
14   \r
15   render: () ->\r
16     this.$el.html('')\r
17     this.$el.append(@credit.render().el)\r
18     this\r
19   \r