OSDN Git Service

fix: fetch fail
[pettanr/pettanr.git] / app / assets / javascripts / views / ground_pictures / summary.js.coffee
1 class Pettanr.Views.GroundPicture.Summary extends Pettanr.View.Summary\r
2   \r
3   initialize: (options) ->\r
4     super(options)\r
5   \r
6   render: () ->\r
7     super()\r
8     @item.get_parent('picture', this, {\r
9       success: (@picture) =>\r
10         @credit = new Pettanr.View.Credit(@picture, {icon: false})\r
11         @item.get_parent('panel', this, {\r
12           success: (@panel) =>\r
13             @panel_face_button = @panel.mini_face_button({\r
14               context: this, \r
15               click: () =>\r
16                 @trigger('http_get', @panel.show_url())\r
17             })\r
18             this.$el.html('')\r
19             this.$el.append(@credit.render().el)\r
20             this.$el.append(@panel_face_button.render().el)\r
21         })\r
22     })\r
23     this\r
24   \r