X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=app%2Fassets%2Fjavascripts%2Fmodels%2Fartist.js.coffee;h=4c8c80f213f0ffd9ee4d7957452dab7f0007cb66;hb=6b12a345e25cadadaf2a4cc15b8f4967193d6afb;hp=aea6ade3eb41831fafc0f7f83d5bf6cf4e065d96;hpb=ebb950487db886437783df10ffccc48074488f1a;p=pettanr%2Fpettanr.git diff --git a/app/assets/javascripts/models/artist.js.coffee b/app/assets/javascripts/models/artist.js.coffee index aea6ade3..4c8c80f2 100644 --- a/app/assets/javascripts/models/artist.js.coffee +++ b/app/assets/javascripts/models/artist.js.coffee @@ -12,10 +12,12 @@ class Pettanr.Artist extends Peta.Owner name: 'no name' } + 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: () -> if @id @url = @url + @id -class Pettanr.Artist.Collection extends Backbone.Collection - model: Pettanr.Artist - url: '/artists'