OSDN Git Service

redraw page title
[pettanr/pettanr.git] / app / assets / javascripts / controllers / ground_pictures.js.coffee
1 class Pettanr.GroundPicturesController 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     @redraw_title(@params)\r
17     _this = this\r
18     @item.fetch({cache: true}).done ->\r
19       _this.redraw_title(_this.params, _this.item.get('caption'))\r
20       view = new Pettanr.Views.GroundPicture.Show({\r
21         el: "#pettanr",\r
22         item: _this.item,\r
23         operators: _this.operators\r
24       })\r
25       #view.render()\r
26   \r
27   show: () ->\r
28     @set_show()\r
29     switch @params['format']\r
30       when 'prof'\r
31         @show_prof()\r
32       when 'html'\r
33         @show_html()\r
34   \r
35   count: () ->\r
36   \r
37   new: () ->\r
38   \r
39   edit: () ->\r
40   \r
41   create: () ->\r
42   \r
43   update: () ->\r
44   \r
45   destroy: () ->\r
46     \r