class Pettanr.Router extends Backbone.Router\r
\r
- _index: () ->\r
- list_result = new Pettanr.Scroll.Collection({})\r
- new Pettanr.FilerRender('scroll', list_result, 'default', window.operators)\r
- \r
- show_html_format: (format) -> \r
- \r
- count: () ->\r
- \r
- new: () ->\r
- \r
- edit: () ->\r
- \r
- create: () ->\r
- \r
- update: () ->\r
- \r
- destroy: () ->\r
- \r
parse_query_string: (query_string) ->\r
params = {}\r
if query_string\r
params['action'] = 'show'\r
params['id'] = id\r
else\r
- params['action'] = 'index'\r
+ if id\r
+ params['action'] = id\r
+ else\r
+ params['action'] = 'index'\r
this.fire(params)\r
this.route('', 'home')\r
this.route(':controller/:id/:action?*query_string', 'c_i_a')\r