-class Pettanr.Views.License.Summary extends Backbone.View\r
+class Pettanr.Views.License.Summary extends Pettanr.Views.Common.Summary\r
\r
initialize: (options) ->\r
@item = options.item\r
+ @load()\r
\r
- render: () ->\r
- this.$el.html('')\r
+ load: () ->\r
@system_picture = @item.system_picture()\r
@system_picture.fetch({cache: true}).done =>\r
- img = new Tag.Img({\r
+ @img = new Tag.Img({\r
attr: {\r
src: @system_picture.r_url()\r
}\r
})\r
- this.$el.html(img.render().el)\r
+ @trigger('ready')\r
+ \r
+ render: () ->\r
+ this.$el.html('')\r
+ this.$el.html(@img.render().el)\r
this\r
\r