1 class Pettanr.Views.SpeechBalloon.ElementSymbol extends Pettanr.View
\r
3 className: 'elements-tab-face-icon'
\r
5 initialize: (options) ->
\r
6 @element = options.element
\r
10 retriever = @element.speech_balloon_template()
\r
11 @listenTo(retriever, 'retrieve', @retrieve_speech_balloon_template)
\r
12 retriever.retrieve()
\r
15 retrieve_speech_balloon_template: (@speech_balloon_template) ->
\r
16 retriever = @speech_balloon_template.system_picture()
\r
17 @listenTo(retriever, 'retrieve', @retrieve_system_picture)
\r
18 retriever.retrieve()
\r
20 retrieve_system_picture: (@system_picture) ->
\r
21 img = @system_picture.tmb_opt_img_tag()
\r
22 this.$el.html(img.render().el)
\r
24 class Pettanr.Views.SpeechBalloon.ElementFace extends Pettanr.View
\r
26 className: 'elements-tab'
\r
28 initialize: (options) ->
\r
29 @element = options.element
\r
33 symbol = new Pettanr.Views.SpeechBalloon.ElementSymbol({element: @element})
\r
34 this.$el.append(symbol.render().el)
\r