OSDN Git Service

fix:pp link
[pettanr/pettanr.git] / app / assets / javascripts / views / panels / show.js.coffee
index e8af5f1..53c043a 100644 (file)
@@ -16,6 +16,7 @@ class Pettanr.Views.Panel.Show extends Pettanr.View.Show
     @owner = new Pettanr.View.Show.Footer(@item, this, @default_footer_options())\r
     @listenTo(@header, 'click:pick', @click_pick)\r
     @listenTo(@authored_by, 'click', @click_authored_by)\r
+    @listenTo(@body, 'http_get', @http_get)\r
   \r
   render: () ->\r
     this.$el.html('')\r
@@ -27,6 +28,9 @@ class Pettanr.Views.Panel.Show extends Pettanr.View.Show
     this.$el.append(@owner.render().el) if @item.is_own()\r
     this\r
   \r
+  http_get: (url) ->\r
+    @trigger('http_get', url)\r
+  \r
   click_pick: () ->\r
     @trigger('pick', @item)\r
   \r