OSDN Git Service
(root)
/
pettanr
/
pettanr.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
add credit
[pettanr/pettanr.git]
/
app
/
assets
/
javascripts
/
models
/
author.js.coffee
1
class Pettanr.Author extends Peta.Owner
\r
2
url: '/authors/'
\r
3
\r
4
@singular: () ->
\r
5
'Author'
\r
6
\r
7
@plural: () ->
\r
8
'Authors'
\r
9
\r
10
defaults: {
\r
11
id: null,
\r
12
name: 'no name'
\r
13
}
\r
14
\r
15
name_view: (length = null) ->
\r
16
new Pettanr.Views.Author.Name({item: this, length: length})
\r
17
\r
18
initialize: () ->
\r
19
if @id
\r
20
@url = @url + @id
\r
21
\r
22
class Pettanr.Author.Collection extends Backbone.Collection
\r
23
model: Pettanr.Author
\r
24
url: '/authors'
\r