OSDN Git Service

Merge branch 'v06' of git.sourceforge.jp:/gitroot/pettanr/pettanr into v06
[pettanr/pettanr.git] / app / assets / javascripts / models / ground_color.js.coffee
1 class Pettanr.GroundColor extends Peta.Element\r
2   url: '/ground_colors/'\r
3   \r
4   @singular: () ->\r
5     'GroundColor'\r
6   \r
7   @plural: () ->\r
8     'GroundColors'\r
9   \r
10   defaults: {\r
11     id: null,\r
12     code: 0,\r
13   } \r
14   \r
15   @has_picture: () ->\r
16     false\r
17   \r
18   panel: () ->\r
19     new Pettanr.Panel({id: @get('panel_id')})\r
20   \r
21   element_face: () ->\r
22     new Pettanr.Views.GroundColor.ElementFace({element: this})\r
23   \r
24   initialize: () ->\r
25     if @id\r
26       @url = @url + @id\r
27   \r
28 class Pettanr.GroundColor.Collection extends Backbone.Collection\r
29   model: Pettanr.GroundColor\r
30   url: '/ground_colors/'\r
31   \r