OSDN Git Service

fix js
[pettanr/pettanr.git] / app / assets / javascripts / models / system_picture.js.coffee
index 1ddeced..bd5daa6 100644 (file)
@@ -24,8 +24,12 @@ class Pettanr.SystemPicture extends Peta.SystemResource
     {src: @r_url(), width: @get('width'), height: @get('height')}\r
   \r
   tmb_opt_img_tag: () ->\r
-    wh = Pettanr.Imager.thumbnail_size(@get('width'), @get('height'))\r
-    new Pettanr.AppHelperImg({src: @r_url(), size: wh[0]})\r
+    new Pettanr.Image.SymbolPicture({\r
+      attr: {\r
+        src: @r_url()\r
+      },\r
+      picture: this\r
+    })\r
   \r
   symbol_option: (cb) ->\r
     _this = this\r