1 class Pettanr.SpeechBalloon extends Peta.Element
\r
2 url: '/speech_balloons/'
\r
16 panel: (options = {}) ->
\r
17 new Pettanr.Panel({id: @get('panel_id')}, options)
\r
19 speech_balloon_template: () ->
\r
20 new Pettanr.SpeechBalloonTemplate({id: @get('speech_balloon_template_id')})
\r
25 symbol_option: () ->
\r
26 sbt = @speech_balloon_template()
\r
27 sbt.fetch({cache: true}).done =>
\r
28 sp = sbt.system_picture()
\r
29 sp.fetch({cache: true}).done =>
\r
30 @trigger('ready:symbol', sp.tmb_opt_img_tag())
\r
32 filer_caption: () ->
\r
33 @fetch({cache: true}).done =>
\r
34 caption = @escape('caption')
\r
35 @trigger('ready:caption', caption)
\r
37 plain_scenario: () ->
\r
41 new Pettanr.Views.SpeechBalloon.ElementFace({element: this})
\r