OSDN Git Service

fix:balloon edit
[pettanr/pettanr.git] / app / assets / javascripts / models / resource_picture.js.coffee
index 1b5de0e..f54e87c 100644 (file)
@@ -30,14 +30,16 @@ class Pettanr.ResourcePicture extends Peta.Content
     'image/' + @get('ext')\r
   \r
   r_url: (subdir = null) ->\r
-    opt = if Pettanr.to_s(@subdir).empty\r
+    opt = if _.isEmpty(subdir)\r
       ''\r
     else\r
       '?subdir=' + Pettanr.to_s(subdir)\r
     '/resource_pictures/' + @filename() + opt\r
   \r
   tmb_opt_img_tag: () ->\r
-    new Pettanr.Image.SymbolPicture({\r
+    klass = if true # thumbnail\r
+      Pettanr.Image.SymbolPicture\r
+    new klass({\r
       attr: {\r
         src: @r_url()\r
       },\r