OSDN Git Service

redraw page title
[pettanr/pettanr.git] / app / assets / javascripts / controllers / license_groups.js.coffee
1 class Pettanr.LicenseGroupsController 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     @item.fetch({cache: true}).done ->\r
10       _this.redraw_title(_this.params, _this.item.get('caption'))\r
11       view = new Pettanr.Views.LicenseGroup.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   new: () ->\r
29     @redraw_title(@params)\r
30     @form_new()\r
31   \r
32   edit: () ->\r
33     @redraw_title(@params)\r
34     @form_edit()\r
35   \r
36   create: () ->\r
37   \r
38   update: () ->\r
39   \r
40   destroy: () ->\r
41     \r