OSDN Git Service

fix filer
[pettanr/pettanr.git] / app / assets / javascripts / models / resource_picture.js.coffee
index fafa3dc..fb2cb02 100644 (file)
@@ -42,8 +42,10 @@ class Pettanr.ResourcePicture extends Peta.Content
     ln = Pettanr.to_s(@license().get('caption'))\r
     lgn + '[' + ln + ']'\r
   \r
-  symbol_option: () ->\r
-    @tmb_opt_img_tag()\r
+  symbol_option: (cb) ->\r
+    _this = this\r
+    this.fetch().done ->\r
+      cb(_this.tmb_opt_img_tag())\r
   \r
   initialize: () ->\r
     if @id\r