OSDN Git Service

90c210edd81ca7ee1a38b9be42f723548cb6fe4e
[pettanr/pettanr.git] / app / assets / javascripts / controllers / speech_balloons.js.coffee
1 class Pettanr.SpeechBalloonsController extends Pettanr.AppController\r
2   \r
3   index: () ->\r
4     @filer_list()\r
5   \r
6   by_author: () ->\r
7     @filer_list()\r
8   \r
9   by_panel: () ->\r
10     @filer_list()\r
11   \r
12   by_speech_balloon_template: () ->\r
13     @filer_list()\r
14   \r
15   show_html: () -> \r
16     _this = this\r
17     @item.fetch({cache: true}).done ->\r
18       view = new Pettanr.Views.SpeechBalloon.Show({\r
19         el: "#pettanr",\r
20         item: _this.item,\r
21         operators: _this.operators\r
22       })\r
23       #view.render()\r
24   \r
25   show: () ->\r
26     @set_show()\r
27     switch @params['format']\r
28       when 'prof'\r
29         @show_prof()\r
30       when 'html'\r
31         @show_html()\r
32   \r
33   count: () ->\r
34   \r
35   new: () ->\r
36     @form_new()\r
37   \r
38   edit: () ->\r
39     @form_edit()\r
40   \r
41   create: () ->\r
42   \r
43   update: () ->\r
44   \r
45   destroy: () ->\r
46     \r