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
Merge branch 'v06' of git.sourceforge.jp:/gitroot/pettanr/pettanr into v06
[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
eb24b8c
..
b7e9b75
100644
(file)
--- a/
app/assets/javascripts/models/story_sheet.js.coffee
+++ b/
app/assets/javascripts/models/story_sheet.js.coffee
@@
-1,4
+1,6
@@
class Pettanr.StorySheet extends Peta.Leaf
\r
class Pettanr.StorySheet extends Peta.Leaf
\r
+ url: '/story_sheets/'
\r
+
\r
@singular: () ->
\r
'StorySheet'
\r
\r
@singular: () ->
\r
'StorySheet'
\r
\r
@@
-12,10
+14,13
@@
class Pettanr.StorySheet extends Peta.Leaf
t: null
\r
}
\r
\r
t: null
\r
}
\r
\r
+ story: () ->
\r
+ new Pettanr.Story({id: @get('story_id')})
\r
+
\r
+ sheet: () ->
\r
+ new Pettanr.Sheet({id: @get('sheet_id')})
\r
+
\r
initialize: () ->
\r
if @id
\r
@url = @url + @id
\r
\r
initialize: () ->
\r
if @id
\r
@url = @url + @id
\r
\r
-class Pettanr.StorySheet.Collection extends Backbone.Collection
\r
- model: Pettanr.StorySheet
\r
- url: '/story_sheets'
\r