OSDN Git Service

fix event names
[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     @trigger('title', @params)\r
5     @filer_list()\r
6   \r
7   by_author: () ->\r
8     @trigger('title', @params)\r
9     @filer_list()\r
10   \r
11   by_panel: () ->\r
12     @trigger('title', @params)\r
13     @filer_list()\r
14   \r
15   show_html: () -> \r
16     @item.fetch({cache: true}).done =>\r
17       @trigger('title', @params, @item.get('caption'))\r
18       show = new Pettanr.Views.GroundColor.Show({\r
19         item: @item,\r
20         operators: @operators\r
21       })\r
22       # show.render()\r
23       @trigger('ready', show)\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