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: finder
[pettanr/pettanr.git]
/
app
/
assets
/
javascripts
/
models
/
story_sheet.js.coffee
diff --git
a/app/assets/javascripts/models/story_sheet.js.coffee
b/app/assets/javascripts/models/story_sheet.js.coffee
index
95f4b2c
..
1446c00
100644
(file)
--- a/
app/assets/javascripts/models/story_sheet.js.coffee
+++ b/
app/assets/javascripts/models/story_sheet.js.coffee
@@
-1,25
+1,24
@@
-class StorySheet extends Item
\r
- @single: () ->
\r
+class Pettanr.StorySheet extends Peta.Leaf
\r
+
\r
+ @singular: () ->
\r
'StorySheet'
\r
\r
@plural: () ->
\r
'StorySheets'
\r
\r
defaults: {
\r
'StorySheet'
\r
\r
@plural: () ->
\r
'StorySheets'
\r
\r
defaults: {
\r
- id: 11
\r
+ id: null,
\r
+ story_id: null,
\r
+ sheet_id: null,
\r
+ t: null
\r
}
\r
\r
}
\r
\r
- initialize: () ->
\r
- confirm("Welcome to Panel")
\r
+ has_sheet: () ->
\r
+ if @get('sheet_id')
\r
+ true
\r
+ else
\r
+ false
\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