OSDN Git Service

fix:js filer router
[pettanr/pettanr.git] / app / assets / javascripts / controllers / scrolls.js.coffee
1 class Pettanr.ScrollsController extends Pettanr.AppController\r
2   \r
3   index: (params) ->\r
4     list_result = new Pettanr.Scroll.Collection({})\r
5     new Pettanr.FilerRender('scroll', list_result, 'default', window.operators)\r
6   \r
7   by_author: (params) ->\r
8     list_result = new Pettanr.Scroll.Collection({})\r
9     new Pettanr.FilerRender('scroll', list_result, 'default', window.operators)\r
10   \r
11   by_panel: (params) ->\r
12     list_result = new Pettanr.Scroll.Collection({})\r
13     new Pettanr.FilerRender('scroll', list_result, 'default', window.operators)\r
14   \r
15   show_html_format: (format) -> \r
16   \r
17   show: (params) ->\r
18     console.log(params)\r
19     id = params['id']\r
20     item = new Pettanr.Scroll({id: id})\r
21     _this = this\r
22     item.fetch({}).done () ->\r
23       alert(item)\r
24   \r
25   count: (params) ->\r
26   \r
27   new: (params) ->\r
28   \r
29   edit: (params) ->\r
30   \r