1 class Pettanr.SystemPicture extends Peta.SystemResource
\r
14 new Pettanr.Cache.Retriever(Pettanr.Picture, @get('picture_id'))
\r
17 @get('id') + '.' + @get('ext')
\r
20 'image/' + @get('ext')
\r
23 '/system_pictures/' + @filename()
\r
26 {src: @r_url(), width: @get('width'), height: @get('height')}
\r
28 tmb_opt_img_tag: () ->
\r
29 new Pettanr.Image.SymbolPicture({
\r
36 symbol_option: () ->
\r
38 success: (picture) =>
\r
39 @trigger('ready:symbol', picture.tmb_opt_img_tag())
\r
42 initialize: (attr = {}, options = {}) ->
\r
43 super(attr, options)
\r