OSDN Git Service

add scroll player
[pettanr/pettanr.git] / app / assets / javascripts / locmare / filer / body / file_body / file_item / caption / default / link / action.js.coffee
index f7ed6a6..618a8a1 100644 (file)
@@ -9,17 +9,15 @@ class Locmare.FilerModule.BodyModule.FileBodyModule.FileItemModule.CaptionItemCo
     this.$el.html(@default_caption.face.render().el)\r
     this\r
   \r
-  js_url: () ->\r
-    "javascript:void(0)"\r
-  \r
   url: () ->\r
     controller = Manifest.manifest().controllers[@item.table_name()]\r
     action = controller.actions[@my_manifest.action_name]\r
+    mani = action.original || action\r
     params = {\r
       controller: controller,\r
       action: action,\r
       id: @item.get('id'),\r
       format: 'html'\r
     }\r
-    '/' + action.url(params)\r
+    '/' + mani.url(params)\r
   \r