OSDN Git Service
(root)
/
pettanr
/
pettanr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix:
[pettanr/pettanr.git]
/
app
/
assets
/
javascripts
/
models
/
ground_color.js.coffee
diff --git
a/app/assets/javascripts/models/ground_color.js.coffee
b/app/assets/javascripts/models/ground_color.js.coffee
index
46971d8
..
c4b8cd0
100644
(file)
--- 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: () ->
\r
false
\r
\r
@has_picture: () ->
\r
false
\r
\r
- panel: () ->
\r
- new Pettanr.Panel({id: @get('panel_id')})
\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
\r
element_face: () ->
\r
new Pettanr.Views.GroundColor.ElementFace({element: this})
\r
\r
- initialize: () ->
\r
+ initialize: (attr, options) ->
\r
+ super(attr, options)
\r
if @id
\r
@url = @url + @id
\r
\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