OSDN Git Service

fix:player
[pettanr/pettanr.git] / app / assets / javascripts / views / speech_balloons / element.js.coffee
index 7e88784..4e79625 100644 (file)
@@ -25,7 +25,12 @@ class Pettanr.Views.SpeechBalloon.Element extends Pettanr.View
   \r
   render: () ->\r
     this.$el.html('')\r
-    this.$el.append(@balloon_view.render().el)\r
+    @balloon.get_parent('system_picture', this, {\r
+      success: (system_picture) =>\r
+        @balloon_view.system_picture = system_picture\r
+        this.$el.append(@balloon_view.render().el)\r
+        @balloon_view.init_picture()\r
+    })\r
     this.$el.append(@speech_view.render().el)\r
     @set_style()\r
     this\r