class Locmare.FilerModule.BodyModule.FileBodyModule.FileItemModule.CaptionItemColumnModule.Default extends Locmare.FilerModule.BodyModule.FileBodyModule.FileItemModule.CaptionItemColumnModule.Base initialize: (options) -> super(options) @face = @mdl().FaceFactory.factory this, @my_manifest.face, @item @link = @mdl().LinkFactory.factory this, @my_manifest.link, @item @listenTo(@face, 'ready:caption', @ready_caption) render: () -> icon = new Pettanr.Views.Common.LoadIcon() this.$el.html(icon.render().el) @face.render() this ready_caption: (caption) -> el = if @has_link() linked_caption = new Tag.A({ attr: {href: '/' + @link.url()}, content: caption }) @listenTo(linked_caption, 'click', @click) linked_caption.render().el else caption this.$el.html(el) this click: () -> @trigger('click:caption') @trigger('http_get', @link.url()) false mdl: () -> Locmare.FilerModule.BodyModule.FileBodyModule.FileItemModule.CaptionItemColumnModule.DefaultModule class Locmare.FilerModule.BodyModule.FileBodyModule.FileItemModule.CaptionItemColumnModule.DefaultModule