OSDN Git Service

fix js
[pettanr/pettanr.git] / app / assets / javascripts / locmare / filer / body / file_body / file_item / symbol / default / face / image.js.coffee
index b7a20d1..12c5e01 100644 (file)
@@ -2,15 +2,18 @@ class Locmare.FilerModule.BodyModule.FileBodyModule.FileItemModule.SymbolItemCol
   \r
   initialize: (options) ->\r
     super(options)\r
+    attr =\r
+    @picture = new Pettanr.Image.SymbolImg({\r
+      attr: {\r
+        src: @url()\r
+      }\r
+    })\r
   \r
   render: () ->\r
-    i = new Pettanr.AppHelperImg({src: @url(), size: @icon_size()})\r
-    this.$el.html(i.render().el)\r
+    if @picture\r
+      this.$el.html(@picture.render().el)\r
     this\r
   \r
   url: () ->\r
     @my_manifest.url\r
   \r
-  tag_opt: () ->\r
-    {'src': @url(), 'width': Manifest.manifest().magic_numbers['thumbnail_width'], 'height': Manifest.manifest().magic_numbers['thumbnail_height']}\r
-  \r