OSDN Git Service

1da63a433d9cf6d17147a6b875d490e18419ad3d
[pettanr/pettanr.git] / app / assets / javascripts / locmare / filer / body / file_body / file_item / caption / default / face / base.js.coffee
1 class Locmare.FilerModule.BodyModule.FileBodyModule.FileItemModule.CaptionItemColumnModule.DefaultModule.FaceModule.BaseFace extends Pettanr.View\r
2   \r
3   initialize: (options) ->\r
4     @default_caption = options.default_caption\r
5     @my_manifest = options.my_manifest\r
6     @item = options.item\r
7   \r
8   # not render\r
9   # get caption data and send message\r
10   render: () ->\r
11     this\r
12   \r
13   replace_empty: () ->\r
14     if Pettanr.is_blank(@caption())\r
15       empty = new Pettanr.Views.Common.EmptyCaption()\r
16       this.$el.html(empty.render().el)\r
17     else\r
18       this.$el.html(@caption())\r
19     this\r
20   \r
21   filer: () ->\r
22     @default_caption.filer()\r
23   \r
24   manifest: () ->\r
25     @filer().manifest\r
26   \r
27   item_name: () ->\r
28     @filer().item_name\r
29   \r