X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=app%2Fassets%2Fjavascripts%2Fmodels%2Fground_color.js.coffee;h=254d97d052c1a17553eaec395f226fd0e7073f4a;hb=dc5fe0b8ebfbde443317df9e2c18aa0deacd471d;hp=7839866f18638c494142f3a9dadb794556f056d2;hpb=eec19634998fd448e4bb1be831260537199d8271;p=pettanr%2Fpettanr.git diff --git a/app/assets/javascripts/models/ground_color.js.coffee b/app/assets/javascripts/models/ground_color.js.coffee index 7839866f..254d97d0 100644 --- a/app/assets/javascripts/models/ground_color.js.coffee +++ b/app/assets/javascripts/models/ground_color.js.coffee @@ -15,14 +15,13 @@ class Pettanr.GroundColor extends Peta.Element @has_picture: () -> false - panel: () -> - new Pettanr.Panel({id: @get('panel_id')}) + panel: (options = {}) -> + new Pettanr.Panel({id: @get('panel_id')}, options) + + element_face: () -> + new Pettanr.Views.GroundColor.ElementFace({element: this}) initialize: () -> if @id @url = @url + @id -class Pettanr.GroundColor.Collection extends Backbone.Collection - model: Pettanr.GroundColor - url: '/ground_colors/' -