OSDN Git Service

js viewer worked
[pettanr/pettanr.git] / app / assets / javascripts / locmare / filer / body / file_body / file_item / icon / base.js.coffee
index a6244ef..b8cf6c7 100644 (file)
@@ -20,6 +20,18 @@ class Locmare.FilerModule.BodyModule.FileBodyModule.FileItemModule.IconItemColum
     this.$el.html(template(args))\r
     this\r
   \r
+  profiler: () ->\r
+    controller = Manifest.manifest().controllers[@item.table_name()]\r
+    action = controller.actions['show']\r
+    params = {\r
+      controller: controller,\r
+      action: action,\r
+      id: @item.get('id'),\r
+      format: 'prof'\r
+    }\r
+    window.router.navigate(action.url(params), true)\r
+    return false\r
+  \r
   filer: () ->\r
     @file_item.filer()\r
   \r