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 80d12c9..e0e3a68 100644 (file)
@@ -1,25 +1,21 @@
-class Author extends Item\r
-  @single: () ->\r
+class Pettanr.Author extends Peta.Owner\r
+  \r
+  @singular: () ->\r
     'Author'\r
   \r
   @plural: () ->\r
     'Authors'\r
   \r
   defaults: {\r
-    id: 11\r
+    id: null,\r
+    name: 'no name'\r
   } \r
   \r
-  initialize: () ->\r
-    confirm("Welcome to Panel")\r
+  overwrite: (options) ->\r
+  \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
-  @test: () ->\r
-    confirm( @single())\r
-    confirm( @plural() )\r
-    confirm( @class_name() )\r
-    confirm( @element_name() )\r
-    confirm( @table_name() )\r
-    \r
+  initialize: (attr = {}, options = {}) ->\r
+    super(attr, options)\r
   \r
-  test: () ->\r
-\r
-@Panel = Panel\r