1 class Pettanr.SpeechBalloonTemplate extends Peta.Template
\r
2 url: '/speech_balloon_templates/'
\r
5 'SpeechBalloonTemplate'
\r
8 'SpeechBalloonTemplates'
\r
14 system_picture: () ->
\r
15 new Pettanr.Cache.Retriever(Pettanr.SystemPicture, @get('system_picture_id'))
\r
17 symbol_option: () ->
\r
18 retriever = @system_picture()
\r
19 @listenTo(retriever, 'retrieve', @retrieve_symbol)
\r
20 retriever.retrieve()
\r
22 retrieve_symbol: (item) ->
\r
23 @trigger('ready:symbol', item.tmb_opt_img_tag())
\r
25 parsed_settings: () ->
\r
26 JSON.parse(@get('settings'))
\r
28 initialize: (attr = {}, options = {}) ->
\r
29 super(attr, options)
\r