OSDN Git Service

fix paginator
[pettanr/pettanr.git] / app / assets / javascripts / models / resource_picture.js.coffee
index fb2cb02..9f4bc4b 100644 (file)
@@ -32,7 +32,7 @@ class Pettanr.ResourcePicture extends Peta.Content
   \r
   tmb_opt_img_tag: () ->\r
     wh = Pettanr.Imager.thumbnail_size(@get('width'), @get('height'))\r
-    {src: @r_url(), width: wh[0], height: wh[1]}\r
+    new Pettanr.AppHelperImg({src: @r_url(), size: wh[0], alt: @get('caption')})\r
   \r
   opt_img_tag: () ->\r
     {src: @url('full'), width: @get('width'), height: @get('height')}\r