X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=app%2Fassets%2Fjavascripts%2Fmodels%2Fauthor.js.coffee;h=e0e3a680b9225863846c928e35836cbe370b5dc5;hb=f25bedea8e4e22d2ac9b65f3694fcc90a9dfa91c;hp=8a6d2c3674d3d12ca0c6b23364092d9b30734ddc;hpb=ebb950487db886437783df10ffccc48074488f1a;p=pettanr%2Fpettanr.git diff --git a/app/assets/javascripts/models/author.js.coffee b/app/assets/javascripts/models/author.js.coffee index 8a6d2c36..e0e3a680 100644 --- a/app/assets/javascripts/models/author.js.coffee +++ b/app/assets/javascripts/models/author.js.coffee @@ -1,5 +1,4 @@ class Pettanr.Author extends Peta.Owner - url: '/authors/' @singular: () -> 'Author' @@ -12,8 +11,11 @@ class Pettanr.Author extends Peta.Owner name: 'no name' } - initialize: () -> - if @id - @url = @url + @id - - + overwrite: (options) -> + + icon_with_caption_view: (half = true, column_name = 'name', length = 12) -> + new Pettanr.Views.Common.IconWithCaption({item: this, half: half, column_name: column_name, length: length}) + + initialize: (attr = {}, options = {}) -> + super(attr, options) +