OSDN Git Service

redraw page title
[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     @redraw_title(@params)\r
5     @filer_list()\r
6   \r
7   show_html: () -> \r
8     _this = this\r
9     @redraw_title(@params)\r
10     @item.fetch({cache: true}).done ->\r
11       view = new Pettanr.Views.SystemPicture.Show({\r
12         el: "#pettanr",\r
13         item: _this.item,\r
14         operators: _this.operators\r
15       })\r
16       view.render()\r
17   \r
18   show: () ->\r
19     @set_show()\r
20     switch @params['format']\r
21       when 'prof'\r
22         @show_prof()\r
23       when 'html'\r
24         @show_html()\r
25   \r
26   count: () ->\r
27   \r
28   create: () ->\r
29   \r
30   update: () ->\r
31   \r
32   destroy: () ->\r
33     \r