OSDN Git Service
(root)
/
pettanr
/
pettanr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix: fetch fail
[pettanr/pettanr.git]
/
app
/
assets
/
javascripts
/
models
/
writing_format.js.coffee
diff --git
a/app/assets/javascripts/models/writing_format.js.coffee
b/app/assets/javascripts/models/writing_format.js.coffee
index
620b331
..
b6e60f0
100644
(file)
--- a/
app/assets/javascripts/models/writing_format.js.coffee
+++ b/
app/assets/javascripts/models/writing_format.js.coffee
@@
-1,25
+1,20
@@
-class WritingFormat extends Item
\r
- @single: () ->
\r
+class Pettanr.WritingFormat extends Peta.Template
\r
+
\r
+ @singular: () ->
\r
'WritingFormat'
\r
\r
@plural: () ->
\r
'WritingFormats'
\r
\r
defaults: {
\r
'WritingFormat'
\r
\r
@plural: () ->
\r
'WritingFormats'
\r
\r
defaults: {
\r
- id:
11
\r
+ id:
null
\r
}
\r
\r
}
\r
\r
- initialize: () ->
\r
- confirm("Welcome to Panel")
\r
+ @trace_routes: () ->
\r
+ {
\r
+ symbol: ['system_picture']
\r
+ }
\r
\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
\r
- test: () ->
\r
-
\r
-@Panel = Panel
\r