OSDN Git Service

fix:
[pettanr/pettanr.git] / app / assets / javascripts / models / ground_color.js.coffee
index 3f6ed03..c4b8cd0 100644 (file)
@@ -15,11 +15,17 @@ class Pettanr.GroundColor extends Peta.Element
   @has_picture: () ->\r
     false\r
   \r
-  initialize: () ->\r
+  @pick_item_name: () ->\r
+    ''\r
+  \r
+  panel: (options = {}) ->\r
+    new Pettanr.Panel({id: @get('panel_id')}, options)\r
+  \r
+  element_face: () ->\r
+    new Pettanr.Views.GroundColor.ElementFace({element: this})\r
+  \r
+  initialize: (attr, options) ->\r
+    super(attr, options)\r
     if @id\r
       @url = @url + @id\r
   \r
-class Pettanr.GroundColor.Collection extends Backbone.Collection\r
-  model: Pettanr.GroundColor\r
-  url: '/ground_colors/'\r
-  \r