id: null\r
} \r
\r
+ @pick: () ->\r
+ \r
+ @pick_item_name: () ->\r
+ 'resource_picture'\r
+ \r
+ @pick_model: () ->\r
+ Manifest.item_name_to_model(@pick_item_name())\r
+ \r
+ @traceable_item_names: () ->\r
+ ['ground_picture', 'picture']\r
+ \r
+ @is_traceable: (item_name) ->\r
+ _.contains(@traceable_item_names(), item_name)\r
+ \r
+ trace_from_ground_picture: () ->\r
+ \r
+ trace_from_picture: () ->\r
+ \r
picture: () ->\r
new Pettanr.Picture({id: @get('picture_id')})\r
\r
symbol_option: () ->\r
i = @picture()\r
i.fetch({cache: true}).done =>\r
- @symbol_picture = i.tmb_opt_img_tag()\r
- @trigger('ready:symbol')\r
+ @trigger('ready:symbol', i.tmb_opt_img_tag())\r
\r
element_face: () ->\r
new Pettanr.Views.PanelPicture.ElementFace({element: this})\r
initialize: () ->\r
if @id\r
@url = @url + @id\r
+ @bind('change:width', () ->\r
+ console.log('cng')\r
+ )\r
\r