}\r
\r
opt_img_tag: () ->\r
- {src: @r_url(), width: @get('width'), height: @get('height')}\r
+ @picture_file()\r
\r
tmb_opt_img_tag: () ->\r
@symbol_file()\r
history_view: () ->\r
new Pettanr.Views.Picture.History({item: this})\r
\r
- credit_icon_view: () ->\r
- new Pettanr.Views.Picture.CreditIcon({item: this})\r
- \r
- credit_view: (with_icon = true) ->\r
- new Pettanr.Views.Picture.Credit({item: this, with_icon: with_icon})\r
- \r
- picture_file: (subdir = null) ->\r
- new Pettanr.PictureFile(this, subdir)\r
- \r
- fetch: (options) ->\r
- if @id\r
- @credit_icon = @credit_icon_view()\r
- @credit = null\r
- f = (data, status) =>\r
- @credit = data\r
- @trigger('ready')\r
- $.get(@url + '/credit', null, f, 'html')\r
- super(options)\r
- \r
initialize: (attr = {}, options = {}) ->\r
super(attr, options)\r
\r