OSDN Git Service

redraw page title
[pettanr/pettanr.git] / app / assets / javascripts / controllers / pictures.js.coffee
1 class Pettanr.PicturesController extends Pettanr.AppController\r
2   \r
3   index: () ->\r
4     @redraw_title(@params)\r
5     @filer_list()\r
6   \r
7   by_artist: () ->\r
8     @redraw_title(@params)\r
9     @filer_list()\r
10   \r
11   show_html: () -> \r
12     @redraw_title(@params)\r
13     _this = this\r
14     @item.fetch({cache: true}).done ->\r
15       view = new Pettanr.Views.Picture.Show({\r
16         el: "#pettanr",\r
17         item: _this.item,\r
18         operators: _this.operators\r
19       })\r
20       view.render()\r
21   \r
22   show: () ->\r
23     @set_show()\r
24     switch @params['format']\r
25       when 'prof'\r
26         @show_prof()\r
27       when 'html'\r
28         @show_html()\r
29   \r