OSDN Git Service

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