OSDN Git Service

fix: view system2
[pettanr/pettanr.git] / app / assets / javascripts / views / authors / show.js.coffee
index 8dbe721..8887224 100644 (file)
@@ -1,9 +1,4 @@
-class Pettanr.Views.Author.ShowModule\r
-class Pettanr.Views.Author.ShowModule.Header extends Pettanr.Views.Show.Header\r
-  \r
-  initialize: (options) ->\r
-    super(options)\r
-  \r
+class Pettanr.Views.Author.ShowModule extends Pettanr.View.Show\r
 class Pettanr.Views.Author.ShowModule.Scrolls extends Pettanr.View\r
   \r
   initialize: (options) ->\r
@@ -65,7 +60,7 @@ class Pettanr.Views.Author.ShowModule.Panels extends Pettanr.View
     super(options)\r
     @item = options.item\r
     @panels_body = new Pettanr.Views.Author.ShowModule.PanelsBody({item: @item})\r
-    @credits = new Pettanr.Views.Common.Credits({parent: this})\r
+    @credits = new Pettanr.View.Credits({parent: this})\r
   \r
   render: () ->\r
     @listenTo(@panels_body, 'ready', @ready)\r
@@ -103,18 +98,10 @@ class Pettanr.Views.Author.ShowModule.Body extends Pettanr.View
   http_get: (url) ->\r
     @trigger('http_get', url)\r
   \r
-class Pettanr.Views.Author.Show extends Pettanr.View\r
-  tagName: 'div'\r
+class Pettanr.Views.Author.Show extends Pettanr.View.Show\r
   \r
   initialize: (options) ->\r
-    @item = options.item\r
-    @header = new Pettanr.Views.Author.ShowModule.Header({\r
-      item: @item, \r
-      caption: @item.get('name'), \r
-      icon_url: @item.show_url(),\r
-      caption_url: @item.show_url(),\r
-      prof_url: @item.prof_url()\r
-    })\r
+    @header = new Pettanr.View.Show.Header(@item, this, @default_header_options())\r
     @body = new Pettanr.Views.Author.ShowModule.Body({\r
       item: @item, \r
     })\r