1 class Pettanr.GroundPicture extends Peta.Element
\r
2 url: '/ground_pictures/'
\r
17 @repeat_texts: () ->
\r
18 ['repeat', 'repeat-x', 'repeat-y', 'no-repeat']
\r
20 panel: (options = {}) ->
\r
21 new Pettanr.Panel({id: @get('panel_id')}, options)
\r
24 new Pettanr.Picture({id: @get('picture_id')})
\r
29 tmb_opt_img_tag: (picture) ->
\r
30 new Pettanr.Image.SymbolPicture({
\r
32 src: picture.r_url(),
\r
33 alt: @escape('caption')
\r
38 symbol_option: () ->
\r
40 i.fetch({cache: true}).done =>
\r
41 @trigger('ready:symbol', i.tmb_opt_img_tag())
\r
44 Pettanr.GroundPicture.repeat_texts()[@get('repeat')]
\r
47 new Pettanr.Views.GroundPicture.ElementFace({element: this})
\r