OSDN Git Service

add load icon
[pettanr/pettanr.git] / app / assets / javascripts / models / speech.js.coffee
index 7109b72..97e5a62 100644 (file)
@@ -23,12 +23,13 @@ class Pettanr.Speech extends Peta.Element
   \r
   symbol_option: (cb) ->\r
     sb = @speech_balloon()\r
-    sb.fetch().done ->\r
+    sb.fetch({cache: true}).done =>\r
       sbt = sb.speech_balloon_template()\r
-      sbt.fetch().done ->\r
+      sbt.fetch({cache: true}).done =>\r
         sp = sbt.system_picture()\r
-        sp.fetch().done ->\r
-          cb(sp.tmb_opt_img_tag())\r
+        sp.fetch({cache: true}).done =>\r
+          @symbol_picture = sp.tmb_opt_img_tag()\r
+          @trigger('ready:symbol')\r
   \r
   text_align_text: () ->\r
     Pettanr.Speech.text_align_texts()[@get('text_align')]\r