\r
initialize: (options) ->\r
super(options)\r
- @item = options.item\r
- @load()\r
- \r
- load: () ->\r
- @trigger('ready')\r
\r
render: () ->\r
- this.$el.html('')\r
+ super()\r
@visible = new Tag.Span({\r
class_name: 'state',\r
content: I18n.t('original_pictures.' + @item.state())\r
})\r
+ this.$el.html('')\r
this.$el.append(@visible.render().el)\r
@item.get_child('resource_picture', this, {\r
success: (@resource_picture) =>\r
if @resource_picture\r
- @item.get_parent('picture', this, {\r
+ @resource_picture.get_parent('picture', this, {\r
success: (@picture) =>\r
- @credit = new Pettanr.View.Credit(@picture, {icon: true})\r
- @listenTo(@credit, 'click:icon', @picture_click)\r
+ @credit = new Pettanr.View.Credit(@picture, {icon: false})\r
this.$el.append(@credit.render().el)\r
+ @append_rb()\r
})\r
})\r
- @rb()\r
this\r
\r
- # in credit\r
- picture_click: (picture) ->\r
- @trigger('http_get', picture.show_url())\r
- \r