X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=app%2Fassets%2Fjavascripts%2Fmodels%2Fground_color.js.coffee;h=bc36e98e4a2d6c94caeb2c679f4d0759b1db0e3c;hb=083cd052b6a10be6ddb3534307176f8c415952a8;hp=46971d856776234819ef59baf07710b382481e45;hpb=0dc24d97764947af06c60aeb3ee4dfcbf8ed55b1;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 46971d85..bc36e98e 100644 --- a/app/assets/javascripts/models/ground_color.js.coffee +++ b/app/assets/javascripts/models/ground_color.js.coffee @@ -15,17 +15,17 @@ class Pettanr.GroundColor extends Peta.Element @has_picture: () -> false + @pick_item_name: () -> + '' + panel: () -> - new Pettanr.Panel({id: @get('panel_id')}) + new Pettanr.Cache.Retriever(Pettanr.Panel, @get('panel_id')) element_face: () -> new Pettanr.Views.GroundColor.ElementFace({element: this}) - initialize: () -> + initialize: (attr, options) -> + super(attr, options) if @id @url = @url + @id -class Pettanr.GroundColor.Collection extends Backbone.Collection - model: Pettanr.GroundColor - url: '/ground_colors/' -