-class Scroll extends Item\r
- @single: () ->\r
+class Pettanr.Scroll extends Peta.Binder\r
+ \r
+ @singular: () ->\r
'Scroll'\r
\r
@plural: () ->\r
'Scrolls'\r
\r
defaults: {\r
- id: 11\r
+ id: null,\r
+ visible: 0\r
} \r
\r
- initialize: () ->\r
- confirm("Welcome to Panel")\r
+ overwrite: (options) ->\r
+ operators = Pettanr.cache.operators\r
+ return false if not operators.author\r
+ @set('author_id', operators.author.id)\r
+ \r
+ short: (column_name, length = 12) ->\r
+ _.escape(Pettanr.truncate(@get(column_name), 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