X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=app%2Fassets%2Fjavascripts%2Fmodels%2Fauthor.js.coffee;h=4c8745e7570c21591ecfb50c516a0f9b74d2d992;hb=8c860bbc3faaff8c7a458b28f1cac7e30ff490df;hp=acf64127f852c00971b6c272808018977ff1f794;hpb=42f367d187922962e73414891f9fdaec91c54432;p=pettanr%2Fpettanr.git diff --git a/app/assets/javascripts/models/author.js.coffee b/app/assets/javascripts/models/author.js.coffee index acf64127..4c8745e7 100644 --- a/app/assets/javascripts/models/author.js.coffee +++ b/app/assets/javascripts/models/author.js.coffee @@ -12,16 +12,10 @@ class Pettanr.Author extends Peta.Owner name: 'no name' } - name_view: (length = null) -> - new Pettanr.Views.Author.Name({item: this, length: length}) - - icon_with_caption_view: (half, column_name, length) -> + 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: () -> if @id @url = @url + @id -class Pettanr.Author.Collection extends Backbone.Collection - model: Pettanr.Author - url: '/authors'