OSDN Git Service

clean
[pettanr/pettanr.git] / app / assets / javascripts / controllers / ground_colors.js.coffee
1 class Pettanr.GroundColorsController 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_panel: () ->\r
12     @redraw_title(@params)\r
13     @filer_list()\r
14   \r
15   show_html: () -> \r
16     @item.fetch({cache: true}).done =>\r
17       @redraw_title(@params, @item.get('caption'))\r
18       view = new Pettanr.Views.GroundColor.Show({\r
19         el: "#pettanr",\r
20         item: @item,\r
21         operators: @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   \r
37   edit: () ->\r
38   \r
39   create: () ->\r
40   \r
41   update: () ->\r
42   \r
43   destroy: () ->\r
44     \r