OSDN Git Service

fix: view system2
[pettanr/pettanr.git] / app / assets / javascripts / locmare / filer / body / file_body / file_item / icon / default.js.coffee
index 62986c5..65be0ce 100644 (file)
@@ -4,23 +4,15 @@ class Locmare.FilerModule.BodyModule.FileBodyModule.FileItemModule.IconItemColum
     super(options)\r
   \r
   render: () ->\r
-    icon = new Pettanr.Image.SymbolImg({\r
+    prof_button = @item.prof_button({\r
       class_name: 'face', \r
-      attr: {\r
-        src: @icon_file_name()\r
-      }\r
+      context: this, \r
+      click: () ->\r
+        @trigger('click:prof', @item.prof_url())\r
     })\r
-    a = new Tag.A({\r
-      attr: {href: '/' + @url()}, \r
-      content: icon.render().el\r
-    })\r
-    this.$el.html(a.render().el)\r
-    @listenTo(a, 'click', @click)\r
+    this.$el.html(prof_button.render().el)\r
     this\r
   \r
-  icon_file_name: () ->\r
-    '/images/prof.gif'\r
-   \r
   is_visible: () ->\r
     true\r
   \r