OSDN Git Service

Merge branch 'v06' of git.sourceforge.jp:/gitroot/pettanr/pettanr into v06
[pettanr/pettanr.git] / app / assets / javascripts / models / author.js.coffee
index acf6412..4c8745e 100644 (file)
@@ -12,16 +12,10 @@ class Pettanr.Author extends Peta.Owner
     name: 'no name'\r
   } \r
   \r
-  name_view: (length = null) ->\r
-    new Pettanr.Views.Author.Name({item: this, length: length})\r
-  \r
-  icon_with_caption_view: (half, column_name, length) ->\r
+  icon_with_caption_view: (half = true, column_name = 'name', length = 12) ->\r
     new Pettanr.Views.Common.IconWithCaption({item: this, half: half, column_name: column_name, length: length})\r
   \r
   initialize: () ->\r
     if @id\r
       @url = @url + @id\r
   \r
-class Pettanr.Author.Collection extends Backbone.Collection\r
-  model: Pettanr.Author\r
-  url: '/authors'\r