OSDN Git Service

fix editor event
[pettanr/pettanr.git] / app / assets / javascripts / controllers / ground_pictures.js.coffee
index 365c8cb..f357d62 100644 (file)
@@ -1,21 +1,25 @@
 class Pettanr.GroundPicturesController extends Pettanr.AppController\r
   \r
   index: () ->\r
+    @redraw_title(@params)\r
     @filer_list()\r
   \r
   by_author: () ->\r
+    @redraw_title(@params)\r
     @filer_list()\r
   \r
   by_panel: () ->\r
+    @redraw_title(@params)\r
     @filer_list()\r
   \r
   show_html: () -> \r
-    _this = this\r
-    @item.fetch({cache: true}).done ->\r
+    @redraw_title(@params)\r
+    @item.fetch({cache: true}).done =>\r
+      @redraw_title(@params, @item.eget('caption'))\r
       view = new Pettanr.Views.GroundPicture.Show({\r
         el: "#pettanr",\r
-        item: _this.item,\r
-        operators: _this.operators\r
+        item: @item,\r
+        operators: @operators\r
       })\r
       #view.render()\r
   \r