OSDN Git Service

redraw page title
[pettanr/pettanr.git] / app / assets / javascripts / controllers / ground_colors.js.coffee
index ec50f36..daaf943 100644 (file)
@@ -1,17 +1,21 @@
 class Pettanr.GroundColorsController 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
+      _this.redraw_title(_this.params, _this.item.get('caption'))\r
       view = new Pettanr.Views.GroundColor.Show({\r
         el: "#pettanr",\r
         item: _this.item,\r