OSDN Git Service

3891082864f7bb9b7c003edcd10b499a6ae4bfeb
[pettanr/pettanr.git] / app / assets / javascripts / views / speech_balloons / summary.js.coffee
1 class Pettanr.Views.SpeechBalloon.Summary extends Pettanr.Views.Common.Summary\r
2   \r
3   initialize: (options) ->\r
4     @item = options.item\r
5     @load()\r
6   \r
7   load: () ->\r
8     panel = @item.panel()\r
9     panel.fetch({cache: true}).done =>\r
10       @panel_icon = new Pettanr.Views.Common.Icon({item: panel, half: true})\r
11       @trigger('ready')\r
12   \r
13   render: () ->\r
14     this.$el.html('')\r
15     this.$el.append(@panel_icon.render().el)\r
16     this\r
17   \r