X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=app%2Fassets%2Fjavascripts%2Fmodels%2Fauthor.js.coffee;h=eab6899f5949ce4beb808370794622ea2acbb1e2;hb=1284942bf6665c3242f052902c1d8648c4ea27be;hp=8a6d2c3674d3d12ca0c6b23364092d9b30734ddc;hpb=b6bb1b9ee93769f9e6e12146e12c185e75587571;p=pettanr%2Fpettanr.git diff --git a/app/assets/javascripts/models/author.js.coffee b/app/assets/javascripts/models/author.js.coffee index 8a6d2c36..eab6899f 100644 --- a/app/assets/javascripts/models/author.js.coffee +++ b/app/assets/javascripts/models/author.js.coffee @@ -12,8 +12,13 @@ class Pettanr.Author extends Peta.Owner name: 'no name' } - initialize: () -> + 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) if @id @url = @url + @id - - +