OSDN Git Service

fix: js models
[pettanr/pettanr.git] / app / assets / javascripts / models / scroll_panel.js.coffee
1 class Pettanr.ScrollPanel extends Peta.Leaf\r
2   url: ''\r
3   \r
4   @singular: () ->\r
5     'ScrollPanel'\r
6   \r
7   @plural: () ->\r
8     'ScrollPanels'\r
9   \r
10   defaults: {\r
11     id: null,\r
12     scroll_id: null,\r
13     panel_id: null,\r
14     t: null\r
15   } \r
16   \r
17   initialize: () ->\r
18     if @id\r
19       @url = @url + @id\r
20   \r
21 class Pettanr.ScrollPanel.Collection extends Backbone.Collection\r
22   model: Pettanr.ScrollPanel\r
23   url: '/scroll_panels'\r