X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=app%2Fassets%2Fjavascripts%2Flocmare%2Ffiler%2Fbody%2Ffile_body%2Ffile_item%2Ficon%2Fbase.js.coffee;h=b8cf6c75f3059a38d660111f35f0986bba7d94c5;hb=c45c5a09d02072bf526c03a3fec185a1963118aa;hp=a6244efce5f025414b667ec791f3533e7b13efc4;hpb=ebb950487db886437783df10ffccc48074488f1a;p=pettanr%2Fpettanr.git diff --git a/app/assets/javascripts/locmare/filer/body/file_body/file_item/icon/base.js.coffee b/app/assets/javascripts/locmare/filer/body/file_body/file_item/icon/base.js.coffee index a6244efc..b8cf6c75 100644 --- a/app/assets/javascripts/locmare/filer/body/file_body/file_item/icon/base.js.coffee +++ b/app/assets/javascripts/locmare/filer/body/file_body/file_item/icon/base.js.coffee @@ -20,6 +20,18 @@ class Locmare.FilerModule.BodyModule.FileBodyModule.FileItemModule.IconItemColum this.$el.html(template(args)) this + profiler: () -> + controller = Manifest.manifest().controllers[@item.table_name()] + action = controller.actions['show'] + params = { + controller: controller, + action: action, + id: @item.get('id'), + format: 'prof' + } + window.router.navigate(action.url(params), true) + return false + filer: () -> @file_item.filer()