OSDN Git Service

fix: fetch fail
[pettanr/pettanr.git] / app / assets / javascripts / locmare / filer / body / file_body / file_item / symbol / template.js.coffee
1 class Locmare.FilerModule.BodyModule.FileBodyModule.FileItemModule.SymbolItemColumnModule.Template extends Locmare.FilerModule.BodyModule.FileBodyModule.FileItemModule.SymbolItemColumnModule.Base\r
2   \r
3   initialize: (options) ->\r
4     super(options)\r
5   \r
6   render: () ->\r
7     view = new Pettanr.Views[@item.singular()].Symbol({\r
8       item: @item\r
9     })\r
10     @listenTo(view, 'click', @click)\r
11     this.$el.html(view.render().el)\r
12     this\r
13   \r
14   \r
15   click: () ->\r
16     @trigger('click:symbol')\r
17     @trigger('http_get', @item.show_url())\r
18   \r