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
add load icon
[pettanr/pettanr.git]
/
app
/
assets
/
javascripts
/
models
/
ground_picture.js.coffee
diff --git
a/app/assets/javascripts/models/ground_picture.js.coffee
b/app/assets/javascripts/models/ground_picture.js.coffee
index
a49d9f8
..
0682e06
100644
(file)
--- a/
app/assets/javascripts/models/ground_picture.js.coffee
+++ b/
app/assets/javascripts/models/ground_picture.js.coffee
@@
-23,7
+23,7
@@
class Pettanr.GroundPicture extends Peta.Element
picture: () ->
\r
new Pettanr.Picture({id: @get('picture_id')})
\r
\r
picture: () ->
\r
new Pettanr.Picture({id: @get('picture_id')})
\r
\r
- has_picture: () ->
\r
+
@
has_picture: () ->
\r
true
\r
\r
tmb_opt_img_tag: (picture) ->
\r
true
\r
\r
tmb_opt_img_tag: (picture) ->
\r
@@
-35,20
+35,19
@@
class Pettanr.GroundPicture extends Peta.Element
picture: picture
\r
})
\r
\r
picture: picture
\r
})
\r
\r
- symbol_option: (
cb
) ->
\r
+ symbol_option: () ->
\r
i = @picture()
\r
i = @picture()
\r
- _this = this
\r
- i.fetch().done ->
\r
-
cb(_this.tmb_opt_img_tag(i)
)
\r
+ i.fetch({cache: true}).done =>
\r
+ @symbol_picture = i.tmb_opt_img_tag()
\r
+
@trigger('ready:symbol'
)
\r
\r
repeat_text: () ->
\r
Pettanr.GroundPicture.repeat_texts()[@get('repeat')]
\r
\r
\r
repeat_text: () ->
\r
Pettanr.GroundPicture.repeat_texts()[@get('repeat')]
\r
\r
+ element_face: () ->
\r
+ new Pettanr.Views.GroundPicture.ElementFace({element: this})
\r
+
\r
initialize: () ->
\r
if @id
\r
@url = @url + @id
\r
\r
initialize: () ->
\r
if @id
\r
@url = @url + @id
\r
\r
-class Pettanr.GroundPicture.Collection extends Backbone.Collection
\r
- model: Pettanr.GroundPicture
\r
- url: '/ground_pictures/'
\r
-
\r