X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=app%2Fassets%2Fjavascripts%2Fmodels%2Fartist.js.coffee;h=921168fd6f09c872c232492a6239a23b1faba3e5;hb=8c860bbc3faaff8c7a458b28f1cac7e30ff490df;hp=427e6da392403248c192ea212adafec552807d6f;hpb=c0f332effbcf231d77e8b301af8857729553f271;p=pettanr%2Fpettanr.git diff --git a/app/assets/javascripts/models/artist.js.coffee b/app/assets/javascripts/models/artist.js.coffee index 427e6da3..921168fd 100644 --- a/app/assets/javascripts/models/artist.js.coffee +++ b/app/assets/javascripts/models/artist.js.coffee @@ -12,7 +12,10 @@ class Pettanr.Artist extends Peta.Owner name: 'no name' } + 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 - +