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
/
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
ca7cd7b
..
b6e60f0
100644
(file)
--- a/
app/assets/javascripts/models/writing_format.js.coffee
+++ b/
app/assets/javascripts/models/writing_format.js.coffee
@@
-1,4
+1,5
@@
class Pettanr.WritingFormat extends Peta.Template
\r
class Pettanr.WritingFormat extends Peta.Template
\r
+
\r
@singular: () ->
\r
'WritingFormat'
\r
\r
@singular: () ->
\r
'WritingFormat'
\r
\r
@@
-9,19
+10,11
@@
class Pettanr.WritingFormat extends Peta.Template
id: null
\r
}
\r
\r
id: null
\r
}
\r
\r
- system_picture: () ->
\r
- new Pettanr.SystemPicture({id: @get('system_picture_id')})
\r
-
\r
- symbol_option: (cb) ->
\r
- i = @system_picture()
\r
- i.fetch().done ->
\r
- cb(i.tmb_opt_img_tag())
\r
+ @trace_routes: () ->
\r
+ {
\r
+ symbol: ['system_picture']
\r
+ }
\r
\r
\r
- initialize: () ->
\r
- if @id
\r
- @url = @url + @id
\r
+ initialize: (attr = {}, options = {}) ->
\r
+ super(attr, options)
\r
\r
\r
-class Pettanr.WritingFormat.Collection extends Backbone.Collection
\r
- model: Pettanr.WritingFormat
\r
- url: '/writing_formats'
\r
-
\r