OSDN Git Service

fix event names
[pettanr/pettanr.git] / app / assets / javascripts / controllers / system_pictures.js.coffee
1 class Pettanr.SystemPicturesController extends Pettanr.AppController\r
2   \r
3   index: () ->\r
4     @trigger('title', @params)\r
5     @filer_list()\r
6   \r
7   show_html: () -> \r
8     @trigger('title', @params)\r
9     @item.fetch({cache: true}).done =>\r
10       show = new Pettanr.Views.SystemPicture.Show({\r
11         item: @item,\r
12         operators: @operators\r
13       })\r
14       show.render()\r
15       @trigger('ready', show)\r
16   \r
17   show: () ->\r
18     @set_show()\r
19     switch @params['format']\r
20       when 'prof'\r
21         @show_prof()\r
22       when 'html'\r
23         @show_html()\r
24   \r
25   count: () ->\r
26   \r