OSDN Git Service

add scroll player
[pettanr/pettanr.git] / app / assets / javascripts / locmare / filer / body / file_body / file_item / date / default.js.coffee
index a16b9f1..140da20 100644 (file)
@@ -3,12 +3,13 @@ class Locmare.FilerModule.BodyModule.FileBodyModule.FileItemModule.DateItemColum
   initialize: (options) ->\r
     super(options)\r
   \r
-  column_template_file_name: () ->\r
-    'show'\r
-  \r
-  item_template_file_name: () ->\r
-    'default'\r
+  render: () ->\r
+    this.$el.html(@time_ago())\r
+    this\r
   \r
   time_ago: () ->\r
-    Pettanr.AppHelper.distance_of_time_in_words_to_now @item.get('updated_at')\r
+    Pettanr.AppHelper.distance_of_time_in_words_to_now(@item.get('updated_at'))\r
+  \r
+  is_visible: () ->\r
+    true\r
   \r